12.9-1.js |
---
es5id: 12.9-1
description: >
The return Statement - a return statement without an expression
may have a LineTerminator before the semi-colon
--- |
604 |
browser.js |
|
0 |
line-terminators.js |
---
info: |
LineTerminator between return and Identifier_opt yields return without
Identifier_opt
es5id: 12.9_A2
description: Inserting LineTerminator between return and Variable
--- |
1019 |
S12.9_A1_T1.js |
---
info: Appearing of "return" without a function body leads to syntax error
es5id: 12.9_A1_T1
description: Checking if execution of "return" with no function fails
negative:
phase: parse
type: SyntaxError
--- |
518 |
S12.9_A1_T2.js |
---
info: Appearing of "return" without a function body leads to syntax error
es5id: 12.9_A1_T2
description: Checking if execution of "return x" with no function fails
negative:
phase: parse
type: SyntaxError
--- |
604 |
S12.9_A1_T3.js |
---
info: Appearing of "return" without a function body leads to syntax error
es5id: 12.9_A1_T3
description: Checking if execution of "return" within "try" statement fails
negative:
phase: parse
type: SyntaxError
--- |
628 |
S12.9_A1_T4.js |
---
info: Appearing of "return" without a function body leads to syntax error
es5id: 12.9_A1_T4
description: Checking if execution of "return" with no function fails
negative:
phase: parse
type: SyntaxError
--- |
582 |
S12.9_A1_T5.js |
---
info: Appearing of "return" without a function body leads to syntax error
es5id: 12.9_A1_T5
description: >
Checking if execution of "return" with no function, placed into a
Block, fails
negative:
phase: parse
type: SyntaxError
--- |
648 |
S12.9_A1_T6.js |
---
info: Appearing of "return" without a function body leads to syntax error
es5id: 12.9_A1_T6
description: >
Checking if execution of "return" with no function, placed into a
loop, fails
negative:
phase: parse
type: SyntaxError
--- |
660 |
S12.9_A1_T7.js |
---
info: Appearing of "return" without a function body leads to syntax error
es5id: 12.9_A1_T7
description: >
Checking if execution of "return x" with no function, placed
inside Block, fails
negative:
phase: parse
type: SyntaxError
--- |
652 |
S12.9_A1_T8.js |
---
info: Appearing of "return" without a function body leads to syntax error
es5id: 12.9_A1_T8
description: >
Checking if execution of "return x" with no function, placed into
a loop, fails
negative:
phase: parse
type: SyntaxError
--- |
664 |
S12.9_A1_T9.js |
---
info: Appearing of "return" without a function body leads to syntax error
es5id: 12.9_A1_T9
description: Checking if execution of "return", placed into a catch Block, fails
negative:
phase: parse
type: SyntaxError
--- |
632 |
S12.9_A1_T10.js |
---
info: Appearing of "return" without a function body leads to syntax error
es5id: 12.9_A1_T10
description: Checking if execution of "return (0)" with no function fails
negative:
phase: parse
type: SyntaxError
--- |
591 |
S12.9_A3.js |
---
info: If Expression is omitted, the return value is undefined
es5id: 12.9_A3
description: Return without Expression
--- |
636 |
S12.9_A4.js |
---
info: |
The production ReturnStatement : return Expression; is evaluated as:
i) Evaluate Expression.
ii) Call GetValue(Result(2)).
iii) Return (return, Result(3), empty)
es5id: 12.9_A4
description: Return very sophisticated expression and function
--- |
989 |
S12.9_A5.js |
---
info: Code after ReturnStatement is not evaluated
es5id: 12.9_A5
description: Using code after Return statement
--- |
793 |
shell.js |
---
description: |
This defines the number of consecutive recursive function calls that must be
made in order to prove that stack frames are properly destroyed according to
ES2015 tail call optimization semantics.
defines: [$MAX_ITERATIONS]
--- |
481 |
tco-strict.js |
---
description: Expression within statement is a candidate for tail-call optimization.
esid: sec-static-semantics-hascallintailposition
flags: [onlyStrict]
features: [tail-call-optimization]
includes: [tcoHelper.js]
--- |
621 |