comment-single-ps.js (900B)
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 can contain Line Terminator at the end of line 7 esid: sec-line-terminators 8 es5id: 7.3_A4_T4 9 description: > 10 Insert PARAGRAPH SEPARATOR (U+2029) into the end of single line 11 comment 12 negative: 13 phase: runtime 14 type: Test262Error 15 ---*/ 16 17 // Because this test concerns the interpretation of non-executable character 18 // sequences within ECMAScript source code, special care must be taken to 19 // ensure that executable code is evaluated as expected. 20 // 21 // Express the intended behavior by intentionally throwing an error; this 22 // guarantees that test runners will only consider the test "passing" if 23 // executable sequences are correctly interpreted as such. 24 25 // single line
throw new Test262Error();