We need to monkey-patch setTimeout for Sandbox contexts.
This commit is contained in:
parent
e76d7305d1
commit
c4f5564b35
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue