Method | Description | |
---|---|---|
GetBase ( ) : |
Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI. Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI. |
|
GetScript ( ) : System.Script |
Returns the script object representing the code of the module. Returns the script object representing the code of the module. |
|
GetUri ( ) : |
Returns the URI of the module. Returns the URI of the module. |
|
IsSandboxed ( ) : bool |
Returns true if this script has a base URI and has a source URI that is contained within that base URI. Returns true if this script has a base URI and has a source URI that is contained within that base URI. |
|
ModuleScript ( System.Script script, |
Creates a new CommonJS module. Creates a new CommonJS module. |
public ModuleScript ( System.Script script, |
||
script | System.Script | the script representing the code of the module. |
uri | the URI of the module. | |
@base | ||
return | System |