Do you have more guidance on how to bootstrap SES in Node.js? I've tried requiring the initSES file (as a module), but it' keeps on not finding "Function" for some reason.
> var ses = require('./initSES-minified.js');
TypeError: Cannot read property 'prototype' of undefined
at repairES5Module (./initSES-minified.js:137:265)
at Object.<anonymous> (./initSES-minified.js:241:729)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at repl:1:11
at REPLServer.self.eval (repl.js:111:21)
> var ses = require('./initSES.js');
TypeError: Cannot read property 'prototype' of undefined
at repairES5Module (./initSES.js:1980:22)
at Object.<anonymous> (./initSES.js:3309:3)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at repl:1:11
at REPLServer.self.eval (repl.js:111:21)
> var ses = require('./initSESPlus.js');
TypeError: Cannot read property 'prototype' of undefined
at repairES5Module (./initSESPlus.js:1981:22)
at Object.<anonymous> (./initSESPlus.js:3310:3)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at repl:1:11
at REPLServer.self.eval (repl.js:111:21)
Also, I've found it difficult to follow the examples because they're very browser centric. For example, the caja.js stuff breaks for lack of "window" and such.
cajaVM.eval( "vm.runInContext( script, vm.createContext( Object.freeze( sandbox ) ) );" );