slimerjs-firefox
Version:
This repo includes slimerjs as well as downloads a local copy of Firefox.
27 lines (19 loc) • 522 B
JavaScript
// Just a stub for the vm module needed by CoffeeScript
/*
const { Cc, Ci, Cu, Cr } = require('chrome');
function createSandbox(proto) {
var options = {
sandboxName: options.name,
sandboxPrototype: proto,
wantXHRConstructor: false,
wantComponents: false,
wantXrays: true,
};
let sandbox = Cu.Sandbox(options.principal, options);
delete sandbox.Iterator;
delete sandbox.Components;
delete sandbox.importFunction;
delete sandbox.debug;
return sandbox;
}
*/