메소드 | 설명 | |
---|---|---|
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. |
리턴 |
public SetModuleScriptProvider ( ModuleScriptProvider moduleScriptProvider ) : |
||
moduleScriptProvider | ModuleScriptProvider |
/// the module script provider for the
/// |
리턴 |
public SetPostExec ( Script postExec ) : |
||
postExec | Script | the post-exec script. |
리턴 |
public SetPreExec ( Script preExec ) : |
||
preExec | Script | the pre-exec script. |
리턴 |
public SetSandboxed ( bool sandboxed ) : |
||
sandboxed | bool | /// true if the created require() instances will be /// sandboxed. /// |
리턴 |