comment-single-lf.js (873B)
1 // |reftest| error:Test262Error 2 // Copyright 2009 the Sputnik authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 info: Single line comments are terminated by the LINE FEED (U+000A) character 7 esid: sec-line-terminators 8 es5id: 7.3_A3.1_T1 9 description: Insert LINE FEED (\u000A) into single line comment 10 negative: 11 phase: runtime 12 type: Test262Error 13 ---*/ 14 15 // Because this test concerns the interpretation of non-executable character 16 // sequences within ECMAScript source code, special care must be taken to 17 // ensure that executable code is evaluated as expected. 18 // 19 // Express the intended behavior by intentionally throwing an error; this 20 // guarantees that test runners will only consider the test "passing" if 21 // executable sequences are correctly interpreted as such. 22 23 // single line 24 throw new Test262Error();