Still, it is part of ES Next. Should be supported ...
# suitescript
l
Still, it is part of ES Next. Should be supported ... I'll create a case to NetSuite
s
I don't think NS officially supports ES.Next
and last I heard SS2.1 was ES2018 compliant
l
😭 This feature is so useful ... I’ll wait for the new release of NetSuite I suppose.
s
or just use TypeScript like I do and have all the fun you want with optional chaining right now
just target ES2018
I've been happily doing 'modern JS' in NetSuite for several years now via TypeScript.
l
I should definitely consider typescript. Isn’t it difficult to debug with the built in dev tool of NetSuite because of the compiled code ?
s
nay, if you transpile to ES2018 the output will look very similar to the input
that said, I generally don't use the NS debugger because it's horrible.
l
On this we agree :)
s
I'll consider the chrome based debugger when it's officially done, and I presume it will handle sourcemaps as well.