We need to monkey-patch setTimeout for Sandbox contexts.

This commit is contained in:
Richard Newman 2016-09-08 10:01:59 -07:00
parent e76d7305d1
commit c4f5564b35

View file

@ -27,3 +27,8 @@
}
})(function () {
return function () {
// Monkeypatch setTimeout so that the Closure Compiler
// output can use it in a Sandbox context.
var { setTimeout } = require("sdk/timers");
this.setTimeout = setTimeout;