After a couple of SuiteScript 2.1 emails, some helpful readers have pointed out some limitations and asked some questions. While the addition of new and powerful syntax is excellent and very much worth your time to explore, there are limitations to the support NetSuite offers.
Anon E Moose points out that the Debugger does not support 2.1 (shared with permission, name obscured by request) :
Great point! If you are an avid user of NetSuite’s debugger environment, then 2.1 will not be viable for you. I have never been a Debugger developer myself, but if you are, be aware of this limitation.
Reader Clay Roper points out a bit more nuance:
[Quick note: GraalVM is the engine NetSuite uses to run SuiteScript 2.1 (as opposed to SuiteScript 1.0 and 2.0 which run on the Rhino engine).]
Yet another great point disguised as a question. According to the SuiteScript 2.1 Help page, Clay is correct that NetSuite only supports up to ES2019, which does not include my Optional Chaining, Nullish Coalescing, and some other very cool features. That said, you can still take advantage of these in Client Scripts (the previous caveat still withstanding) because nearly all major browsers support a much newer standard than does NetSuite’s server side.
Thanks for keeping me in line, everyone!