| Index: test/notification.js |
| =================================================================== |
| --- a/test/notification.js |
| +++ b/test/notification.js |
| @@ -20,16 +20,19 @@ |
| let { |
| createSandbox, setupTimerAndXMLHttp, setupRandomResult, unexpectedError |
| } = require("./_common"); |
| let Prefs = null; |
| let Utils = null; |
| let Notification = null; |
| +// Only starting NodeJS 10 that URL is in the global space. |
| +const {URL} = require("url"); |
| + |
| exports.setUp = function(callback) |
| { |
| // Inject our Array and JSON to make sure that instanceof checks on arrays |
| // within the sandbox succeed even with data passed in from outside. |
| let globals = Object.assign({Array, JSON}, |
| setupTimerAndXMLHttp.call(this), setupRandomResult.call(this)); |
| let sandboxedRequire = createSandbox({globals}); |