-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Timers] Make evil-spec-example.html an any.js test (#31706)
Co-authored-by: Anne van Kesteren <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
var t = async_test("Interaction of setTimeout and WebIDL") | ||
function finishTest() { | ||
assert_equals(log, "ONE TWO ") | ||
t.done() | ||
} | ||
var log = ''; | ||
function logger(s) { log += s + ' '; } | ||
|
||
setTimeout({ toString: function () { | ||
setTimeout("logger('ONE')", 100); | ||
return "logger('TWO'); t.step(finishTest)"; | ||
} }, 100); |
This file was deleted.
Oops, something went wrong.