// Rhino may throw a number of exceptions due to a variety of the build errors, use generic catch to
// get details and store for access.
try {
String moduleLoaderScript = readModuleLoaderSource();
Script moduleLoader = cx.compileString(moduleLoaderScript, "moduleLoader", 1, null);
// Pretend these arguments came from the command line by stuffing them into the top context,
// module loader expects to read them from here.
ScriptableObject.putConstProperty(topScope, "arguments", getBuildScriptArguments());