WRTParameters

This is a pseudo object used in the documentation to describe the parameters one can specify when using w96.WRT.run or w96.WRT.runFile

A WRTParameters object should look something like this:

{
    include: null,
    cwd: "c:/user",
    scriptDir: "<anonymous>",
    modulePath: "<anonymous>",
    envType: "normal",
    boxedEnv: null,
    cachedModules: {},
}

All of the parameters inside this object are optional.

Field

Type

Description

include

Function

The include function to use for this context. Automatically assigned by WRT.

cwd

String

The working directory of the script. It is set to the user home directory by default, but is set to the script path's start directory when invoked via w96.WRT.runFile

scriptDir

String

The startup directory of the script.

moduleDir

String

The directory where the current script/module is contained.

envType

The environment where this script should be executed.

boxedEnv

Object

An object to pass to the execution environment.

cachedModules

Object

The cached modules for this script. Automatically assigned by WRT.

Last updated