mirror of https://github.com/tc39/test262.git
7ffad2be3e
if (!strict_mode) { throw new SyntaxError('unspecified case'); } This doesn't work for a few reasons: 1. 'strict_mode' is undefined in the test case exeuction context. That is, the test framework does not force the test case into strict mode 2. The test case code looks like: "use strict"; if (!strict_mode) ... ... Note that 'strict_mode' is not set before being accessed Really the metadata for these test cases should have a "@strict" property added to instruct the test framework *not* to run the test if an implementation doesn't support strict mode. |
||
---|---|---|
.. | ||
12.1_Block | ||
12.2_Variable_Statement | ||
12.3_Empty_Statement | ||
12.4_Expression_Statement | ||
12.5_The_if_Statement | ||
12.6_Iteration_Statements | ||
12.7_The_continue_Statement | ||
12.8_The_break_Statement | ||
12.9_The_return_Statement | ||
12.10_The_with_Statement | ||
12.11_The_switch_Statement | ||
12.12_Labelled_Statements | ||
12.13_The_throw_statement | ||
12.14_The_try_Statement |