Require require = global.installNodeJsRequire(ctx, envAsScriptable, nodeModuleProvider,
new NodeRequireBuilder(asyncFunctionQueue, exitCallbackExecutor), false);
//TODO Get a real buffer here...
ScriptableObject.putProperty(global, "Buffer", Context.javaToJS(ctx.newObject(global), global));
Scriptable buffer = (Scriptable) require.call(ctx, global, global, new Object[]{Context.javaToJS("buffer", global)});
ScriptableObject.putProperty(global, "Buffer", ScriptableObject.getProperty(buffer,"Buffer"));
Scriptable console = consoleProvider.getConsoleAsScriptable(global);
ScriptableObject.putProperty(global, "console", console);