diff options
Diffstat (limited to 'js/src/tests/test262/language/line-terminators/invalid-comment-single-lf.js')
-rw-r--r-- | js/src/tests/test262/language/line-terminators/invalid-comment-single-lf.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/line-terminators/invalid-comment-single-lf.js b/js/src/tests/test262/language/line-terminators/invalid-comment-single-lf.js new file mode 100644 index 0000000000..a684d42eb5 --- /dev/null +++ b/js/src/tests/test262/language/line-terminators/invalid-comment-single-lf.js @@ -0,0 +1,18 @@ +// |reftest| error:SyntaxError +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: Single line comments can not contain LINE FEED (U+000A) inside +es5id: 7.3_A3.1_T3 +description: Insert real LINE FEED into single line comment +negative: + phase: parse + type: SyntaxError +---*/ + +$DONOTEVALUATE(); + +// CHECK#1 +//single +line comment |