3 // Copyright (C) 2024 Igalia, S.L. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-html-like-comments
8 A SingleLineHTMLCloseComment is allowed in the first line
11 InputElementHashbangOrRegExp ::
17 RegularExpressionLiteral
21 WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
27 // Because this test concerns the interpretation of non-executable character
28 // sequences within ECMAScript source code, special care must be taken to
29 // ensure that executable code is evaluated as expected.
31 // Express the intended behavior by intentionally throwing an error; this
32 // guarantees that test runners will only consider the test "passing" if
33 // executable sequences are correctly interpreted as such.
34 throw new Test262Error("This is not in a comment");