summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/line-terminators/invalid-comment-single-ls.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/line-terminators/invalid-comment-single-ls.js')
-rw-r--r--js/src/tests/test262/language/line-terminators/invalid-comment-single-ls.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/line-terminators/invalid-comment-single-ls.js b/js/src/tests/test262/language/line-terminators/invalid-comment-single-ls.js
new file mode 100644
index 0000000000..766ed198e3
--- /dev/null
+++ b/js/src/tests/test262/language/line-terminators/invalid-comment-single-ls.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 are terminated by the LINE SEPARATOR (U+2028)
+ character
+es5id: 7.3_A3.3_T1
+description: Insert LINE SEPARATOR (\u2028) into single line comment
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+// single line LS>
??? (invalid)