diff --git a/src/scriptlets/trusted-set-constant.js b/src/scriptlets/trusted-set-constant.js index 0c07da0b9..5d8c612ce 100644 --- a/src/scriptlets/trusted-set-constant.js +++ b/src/scriptlets/trusted-set-constant.js @@ -33,15 +33,16 @@ import { * * > If empty object is present in chain it will be trapped until chain leftovers appear. * - * > Use [set-constant](./about-scriptlets.md#set-constant) to set predefined values and functions + * > Use [set-constant](./about-scriptlets.md#set-constant) to set predefined values and functions. * * **Syntax** * ``` - * example.org#%#//scriptlet('trusted-set-constant', property, value[, inferType[, stack]]) + * example.org#%#//scriptlet('trusted-set-constant', property, value[, stack]) * ``` * * - `property` - required, path to a property (joined with `.` if needed). The property must be attached to `window`. - * - `value` - required, an arbitrary value to be set. Value type is being inferred from the argument. + * - `value` - required, an arbitrary value to be set; value type is being inferred from the argument, e.g '500' will be set as number; + * to set string type value wrap argument into another pair of quotes: `'"500"'`; * - `stack` - optional, string or regular expression that must match the current function call stack trace; * if regular expression is invalid it will be skipped *