Context ctx = Context.getCurrentContext();
ctx.setOptimizationLevel(-1);
globalScope = ctx.initStandardObjects();
RequireBuilder require = new RequireBuilder();
require.setSandboxed(false);
require.setModuleScriptProvider(new SoftCachingModuleScriptProvider(new ClasspathModuleSourceProvider()));
require.createRequire(ctx, globalScope).install(globalScope);
nodeScript = compile(ctx, "node.js");
tscScript = compile(ctx, "tsc.js");
} finally {
Context.exit();