summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/line-terminators/invalid-comment-single-cr.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/line-terminators/invalid-comment-single-cr.js')
-rw-r--r--js/src/tests/test262/language/line-terminators/invalid-comment-single-cr.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/line-terminators/invalid-comment-single-cr.js b/js/src/tests/test262/language/line-terminators/invalid-comment-single-cr.js
new file mode 100644
index 0000000000..7a7f26f14e
--- /dev/null
+++ b/js/src/tests/test262/language/line-terminators/invalid-comment-single-cr.js
@@ -0,0 +1,17 @@
+// |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 CARRIAGE RETURN (U+000D) inside
+es5id: 7.3_A3.2_T2
+esid: sec-line-terminators
+description: Insert CARRIAGE RETURN (\u000D) into begin of single line comment
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+// this text is not included in the single-line comment that precedes it