mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
chore: migrate $ERROR -> throw new Test262Error in .jshintrc, harness/sta.js (#3122)
This commit is contained in:
parent
304edd2296
commit
6540b15597
@ -6,7 +6,7 @@ description: |
|
|||||||
|
|
||||||
- An error class to avoid false positives when testing for thrown exceptions
|
- An error class to avoid false positives when testing for thrown exceptions
|
||||||
- A function to explicitly throw an exception using the Test262Error class
|
- A function to explicitly throw an exception using the Test262Error class
|
||||||
defines: [Test262Error, $ERROR, $DONOTEVALUATE]
|
defines: [Test262Error, $DONOTEVALUATE]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
|
||||||
@ -21,8 +21,6 @@ Test262Error.prototype.toString = function () {
|
|||||||
Test262Error.thrower = (message) => {
|
Test262Error.thrower = (message) => {
|
||||||
throw new Test262Error(message);
|
throw new Test262Error(message);
|
||||||
};
|
};
|
||||||
// TODO: Remove when $ERROR migration is completed
|
|
||||||
var $ERROR = Test262Error.thrower;
|
|
||||||
|
|
||||||
function $DONOTEVALUATE() {
|
function $DONOTEVALUATE() {
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user