test262/test/language/statements
Mike Pennisi 4dc81d3788 Add tests for tail-call optimization
ECMAScript 2015 introduced tail call optimization for function calls
occuring in a number of positions in the grammar. Assert expected
behavior by triggering a large (but configurable) number of recursive
function calls in these positions. Compliant runtimes will execute such
programs without error; non-compliant runtimes are expected to fail
these tests by throwing an error or crashing when system resources are
exhausted.
2016-02-01 13:20:17 -05:00
..
block Add tests for tail-call optimization 2016-02-01 13:20:17 -05:00
break Replace runTestCase with assert helpers [test/language/statements/] 2015-08-06 18:33:10 +02:00
class fixup! Add tests for Array - calling super with a single argument 2016-01-13 13:28:00 -05:00
const Add tests verifying that ASI can't occur after the leading let/const in |let let|, |let let = "...";|, and |const let = "...";|. Each matches the LexicalDeclaration production, then triggers an early error before evaluation because it attempts to bind "let". 2015-12-18 15:03:04 -05:00
continue Replace runTestCase with assert helpers [test/language/statements/] 2015-08-06 18:33:10 +02:00
do-while Add tests for tail-call optimization 2016-02-01 13:20:17 -05:00
empty Reorganize ./test 2014-12-07 15:33:09 -08:00
expression Strict eval variable declarations are lexically scoped, assign expected result value to a previously declared global (issue #35) 2015-04-08 15:54:58 -07:00
for Add tests for tail-call optimization 2016-02-01 13:20:17 -05:00
for-in Add tests for ES2015 completion reform 2016-01-22 15:00:03 -05:00
for-of Add tests for ES2015 completion reform 2016-01-22 15:00:03 -05:00
function Add test cases for recent ES2016 fixes 2015-12-15 17:33:49 +01:00
generators Add test cases for recent ES2016 fixes 2015-12-15 17:33:49 +01:00
if Add tests for tail-call optimization 2016-02-01 13:20:17 -05:00
labeled Add tests for tail-call optimization 2016-02-01 13:20:17 -05:00
let Add tests verifying that ASI can't occur after the leading let/const in |let let|, |let let = "...";|, and |const let = "...";|. Each matches the LexicalDeclaration production, then triggers an early error before evaluation because it attempts to bind "let". 2015-12-18 15:03:04 -05:00
return Add tests for tail-call optimization 2016-02-01 13:20:17 -05:00
switch Add tests for tail-call optimization 2016-02-01 13:20:17 -05:00
throw Prefer explicit error checking where possible 2015-07-10 14:12:57 -04:00
try Add tests for tail-call optimization 2016-02-01 13:20:17 -05:00
variable Replace runTestCase with assert helpers [test/language/statements] 2015-08-13 17:33:42 +02:00
while Add tests for tail-call optimization 2016-02-01 13:20:17 -05:00
with Update tests according to ES2016 draft semantics 2016-01-22 15:00:54 -05:00