Fix `single-line-html-close-first-line-*` failing with `Test262Error is not defined` (#4333)

Fix `single-line-html-close-first-line-*` failing with `Test262Error is not defined`

closes #4020
This commit is contained in:
Boshen 2024-12-05 03:55:40 +08:00 committed by GitHub
parent d124e1486c
commit 42d83277b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ info: |
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
negative:
phase: runtime
type: Test262Error
type: EvalError
---*/
// Because this test concerns the interpretation of non-executable character
@ -31,4 +31,4 @@ negative:
// Express the intended behavior by intentionally throwing an error; this
// guarantees that test runners will only consider the test "passing" if
// executable sequences are correctly interpreted as such.
throw new Test262Error("This is not in a comment");
throw new EvalError("This is not in a comment");

View File

@ -21,7 +21,7 @@ info: |
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
negative:
phase: runtime
type: Test262Error
type: EvalError
---*/
// Because this test concerns the interpretation of non-executable character
@ -31,4 +31,4 @@ negative:
// Express the intended behavior by intentionally throwing an error; this
// guarantees that test runners will only consider the test "passing" if
// executable sequences are correctly interpreted as such.
throw new Test262Error("This is not in a comment");
throw new EvalError("This is not in a comment");

View File

@ -21,7 +21,7 @@ info: |
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
negative:
phase: runtime
type: Test262Error
type: EvalError
---*/
// Because this test concerns the interpretation of non-executable character
@ -31,4 +31,4 @@ negative:
// Express the intended behavior by intentionally throwing an error; this
// guarantees that test runners will only consider the test "passing" if
// executable sequences are correctly interpreted as such.
throw new Test262Error("This is not in a comment");
throw new EvalError("This is not in a comment");