Package | Description |
---|---|
net.sourceforge.htmlunit.corejs.javascript.commonjs.module |
Provides the public API for the CommonJS Modules/1.1 implementation.
|
Modifier and Type | Method and Description |
---|---|
RequireBuilder |
RequireBuilder.setModuleScriptProvider(ModuleScriptProvider moduleScriptProvider)
Sets the
ModuleScriptProvider for the Require instances
that this builder builds. |
RequireBuilder |
RequireBuilder.setPostExec(Script postExec)
Sets the script that should execute in every module's scope after the
module's own script has executed.
|
RequireBuilder |
RequireBuilder.setPreExec(Script preExec)
Sets the script that should execute in every module's scope before the
module's own script has executed.
|
RequireBuilder |
RequireBuilder.setSandboxed(boolean sandboxed)
Sets whether the created require() instances will be sandboxed.
|