Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
'use strict' in Client Scripts
So, I'm a Typescript guy, so my javascript files are generated for me. By default, TypeScript injects the 'use strict' directive into the javascript. This caused an issue for my client scripts, as there are still lots of end users that use out-dated browsers that do play nice with 'use strict'.
So, no big deal, I'll simply remove that from all my generated javascript.
However, now when I do that, Netsuite throws the following error
Fail to evaluate script: org.mozilla.javascript.EcmaError: ReferenceError: "document" is not defined. (N/https.js#11)
So, I can't even remove it!
Now what. Tell me clients the need to move to Chrome? I appreciate Netsuite doing some 'evaluating' of the scripts as I load them, but this is a problem.