'javascript' Directive

New in package 162.5

Syntax

//@javascript "version-string"

Description

Specifies the version of JavaScript language to be used by the script engine when interpreting the script. The directive is optional; if omitted, the JavaScript version is defaulted to 1.5.

The directive's scope is limited to the script it's specified in, with an exception of form control scripts such as "Calculate As", "Default Value", etc., which are evaluated with the version setting derived from the form's Global MetaScript.

Parameters

Parameter Description
version-string One of the following values:

Example

Setting JavaScript version to 1.7 to enable Array comprehensions:

See Also

Directives

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.