Skip to content

Commit

Permalink
[Timers] Make evil-spec-example.html an any.js test (#31706)
Browse files Browse the repository at this point in the history
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
  • Loading branch information
Andreu Botella and annevk committed Nov 23, 2021
1 parent 2948653 commit e554f36
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
12 changes: 12 additions & 0 deletions html/webappapis/timers/evil-spec-example.any.js
@@ -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);
23 changes: 0 additions & 23 deletions html/webappapis/timers/evil-spec-example.html

This file was deleted.

0 comments on commit e554f36

Please sign in to comment.