jsForceStrictMode top-level property

ConfigVariable<bool> jsForceStrictMode
final

Whether to force strict mode for the generated JS code.

If the generated JS is loaded as a library in the browser without bundling, it will unavoidably be loaded in strict mode, so even if this is false (the default) it's not a guarantee that the code will always run in sloppy mode. Setting it to true can make it easier to surface strict mode bugs early.

Implementation

final jsForceStrictMode = InternalConfigVariable.value<bool>(false);