comment-single-cr.js (884B)
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_T2 9 description: Insert CARRIAGE RETURN (U+000D) into the end of 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 linethrow new Test262Error();