Skip to content

Commit

Permalink
Fix single-line-html-close-first-line-* failing with `Test262Error …
Browse files Browse the repository at this point in the history
…is not defined` (tc39#4333)

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

closes tc39#4020
  • Loading branch information
Boshen authored Dec 4, 2024
1 parent d124e14 commit 42d8327
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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");
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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");
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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");

0 comments on commit 42d8327

Please sign in to comment.