diff options
Diffstat (limited to 'js/src/tests/test262/language/comments/multi-line-html-close-extra.js')
-rw-r--r-- | js/src/tests/test262/language/comments/multi-line-html-close-extra.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/comments/multi-line-html-close-extra.js b/js/src/tests/test262/language/comments/multi-line-html-close-extra.js new file mode 100644 index 0000000000..c31542da2b --- /dev/null +++ b/js/src/tests/test262/language/comments/multi-line-html-close-extra.js @@ -0,0 +1,26 @@ +// |reftest| error:SyntaxError +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-html-like-comments +description: > + Arbitrary character sequence not permitted before HTMLCloseComment token +info: | + Comment :: + MultiLineComment + SingleLineComment + SingleLineHTMLOpenComment + SingleLineHTMLCloseComment + SingleLineDelimitedComment + + MultiLineComment :: + /* FirstCommentLine[opt] LineTerminator MultiLineCommentChars[opt] * / HTMLCloseComment[opt] +negative: + phase: parse + type: SyntaxError +---*/ + +$DONOTEVALUATE(); + +/* +*/ the comment should not include these characters, regardless of AnnexB extensions --> |