Option Directive
[This is preliminary documentation and subject to change]
Sets a specified compiler directive.
@set @option(fast)
Remarks
By default, the fast option is enabled for all packages, except the default package, which contains all legacy scripts. This allows older scripts to continue working without the stricter rules enforced upon new scripts for the current version of JScript.
When option fast is enabled, the following JScript behavior is activated:
- All variables must be declared.
- You cannot assign values to, or redefine functions.
- Predefined properties of built-in objects cannot be assigned to, deleted, or enumerated.
- Expando properties are not allowed on built-in objects other than the Global object (global scope).
- Function calls must supply the correct number of arguments.
- The arguments property is not available within function calls.
Requirements
Version 7
See Also
Debug Directive | Position Directive