summaryrefslogtreecommitdiff
path: root/ext/web/02_timers.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/web/02_timers.js')
-rw-r--r--ext/web/02_timers.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/web/02_timers.js b/ext/web/02_timers.js
index f703120e6..6cbc706e6 100644
--- a/ext/web/02_timers.js
+++ b/ext/web/02_timers.js
@@ -21,6 +21,7 @@
SafeArrayIterator,
SymbolFor,
TypeError,
+ indirectEval,
} = window.__bootstrap.primordials;
const { webidl } = window.__bootstrap;
const { reportException } = window.__bootstrap.event;
@@ -155,9 +156,7 @@
reportException(error);
}
} else {
- // TODO(@andreubotella): eval doesn't seem to have a primordial, but
- // it can be redefined in the global scope.
- (0, eval)(callback);
+ indirectEval(callback);
}
if (repeat) {