-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inject
sta.js
as provided by Test262
The Test262 project "interpreting" guidelines include the following requirement: > ### Test262-Defined Bindings > > The contents of the following files must be evaluated in the test realm's > global scope prior to test execution: > > 1. `harness/assert.js` > 2. `harness/sta.js` Satisfy this requirement by loading the provided file and injecting it into the test contents.
- Loading branch information
1 parent
3abeae8
commit e1d2b3c
Showing
63 changed files
with
540 additions
and
550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
test/collateral/invalid-version-other-accepted/fake-test262/harness/sta.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function Test262Error(message) { | ||
this.message = message || ""; | ||
} | ||
|
||
Test262Error.prototype.toString = function () { | ||
return "Test262Error: " + this.message; | ||
}; | ||
|
||
var $ERROR; | ||
$ERROR = function $ERROR(message) { | ||
throw new Test262Error(message); | ||
}; |
12 changes: 12 additions & 0 deletions
12
test/collateral/invalid-version-unsupported/fake-test262/harness/sta.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function Test262Error(message) { | ||
this.message = message || ""; | ||
} | ||
|
||
Test262Error.prototype.toString = function () { | ||
return "Test262Error: " + this.message; | ||
}; | ||
|
||
var $ERROR; | ||
$ERROR = function $ERROR(message) { | ||
throw new Test262Error(message); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.