OVMS3/OVMS.V3/components/duktape/config/config-options/DUK_USE_STRICT_DECL.yaml

14 lines
465 B
YAML

define: DUK_USE_STRICT_DECL
introduced: 1.1.0
default: true
tags:
- ecmascript
- experimental
description: >
Enable support for "use strict" declaration (recommended).
When disabled, ECMAScript code is always executed in non-strict mode.
Duktape/C functions remain strict. This option is useful in some legacy
environments where "use strict" declarations are used in existing code
base but the Javascript engine didn't actually support strict mode.