-
- Downloads
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.
Showing
- test/language/statements/labeled/tco.js 19 additions, 0 deletionstest/language/statements/labeled/tco.js
- test/language/statements/return/tco.js 19 additions, 0 deletionstest/language/statements/return/tco.js
- test/language/statements/switch/tco-case-body-dflt.js 19 additions, 0 deletionstest/language/statements/switch/tco-case-body-dflt.js
- test/language/statements/switch/tco-case-body.js 19 additions, 0 deletionstest/language/statements/switch/tco-case-body.js
- test/language/statements/switch/tco-dftl-body.js 19 additions, 0 deletionstest/language/statements/switch/tco-dftl-body.js
- test/language/statements/try/tco-catch-finally.js 21 additions, 0 deletionstest/language/statements/try/tco-catch-finally.js
- test/language/statements/try/tco-catch.js 23 additions, 0 deletionstest/language/statements/try/tco-catch.js
- test/language/statements/try/tco-finally.js 21 additions, 0 deletionstest/language/statements/try/tco-finally.js
- test/language/statements/while/tco-body.js 21 additions, 0 deletionstest/language/statements/while/tco-body.js
Loading
Please register or sign in to comment