Method | Description | |
---|---|---|
CreateRequire ( |
Creates a new require() function. Creates a new require() function. You are still responsible for invoking either |
|
SetModuleScriptProvider ( ModuleScriptProvider moduleScriptProvider ) : |
Sets the
|
|
SetPostExec ( Script postExec ) : |
Sets the script that should execute in every module's scope after the module's own script has executed. Sets the script that should execute in every module's scope after the module's own script has executed. |
|
SetPreExec ( Script preExec ) : |
Sets the script that should execute in every module's scope before the module's own script has executed. Sets the script that should execute in every module's scope before the module's own script has executed. |
|
SetSandboxed ( bool sandboxed ) : |
Sets whether the created require() instances will be sandboxed. Sets whether the created require() instances will be sandboxed. See |
public CreateRequire ( |
||
cx | the current context | |
globalScope | Scriptable | the global scope containing the JS standard natives. |
return |
public SetModuleScriptProvider ( ModuleScriptProvider moduleScriptProvider ) : |
||
moduleScriptProvider | ModuleScriptProvider |
/// the module script provider for the
/// |
return |
public SetPostExec ( Script postExec ) : |
||
postExec | Script | the post-exec script. |
return |
public SetPreExec ( Script preExec ) : |
||
preExec | Script | the pre-exec script. |
return |
public SetSandboxed ( bool sandboxed ) : |
||
sandboxed | bool | /// true if the created require() instances will be /// sandboxed. /// |
return |