I'm getting some conflicting documentation around ...
# suitescript
d
I'm getting some conflicting documentation around SS2.1. Is it ES2019? or ESNEXT?
t
b
2019
es.next is netsuite advertising that they support a future version of javascript
d
@tuli, the link you shared (which tripped me up) say ESNext all over it.
@battk, gotcha ... ES2019 it is then
b
which implies they upgrade their javascript runtime a lot more than ive seen them capable of
d
Thanks all
s
es2019 is plenty awesome though, especially compared to the dark ages we lived with for many years (unless using TS)
d
Hey @stalbert, I agree! I'm playing around with my tsconfig file to ensure I get the greatest output for SS2.1. Exciting.
s
NS claiming ES.Next is hilarious. ES2020 is already released, but they don’t even claim to support that yet. ES.Next would imply features of the upcoming ES2021 (ES12) at this time, but that’s just not true. Maybe back in 2018 they could claim ES.Next support.
m
It seems like optional chaining works which I believe is ES2020
message has been deleted
s
part of the problem is AFAIK there is no such thing as ES2020 or maybe even ES2019 officially - the standard now seems to simply approve individual features - I guess ES2020 is just the features that happened to release stage 4 or whatever sometime in 2020?
it's not like .NET or Java where a bunch of features appear together - features evolve individually at their own pace now.
s
Good point, perhaps they are implementing ES2020 features, and perhaps beyond, which may back up NetSuite’s ES.Next claim after all. I have to give them credit for trying to stay up to date. Given the lack of any official releases, maybe that’s the best any JS engine or browser can do.