does ss 2.x default to 2.1 or 2.0
# suitescript
l
does ss 2.x default to 2.1 or 2.0
j
Follows what you have selected under Setup -> Company -> General Preferences
message has been deleted
l
thanks
is that just for server or client?
j
both
oh wait
I think it’s both?
not sure why the word
SERVER
is in there as I think this applies to all 2.x scripts.
s
It's a bit wonky because scripts on the client are executing (usually) in a JS runtime newer than both 2.0 and 2.1 serverside (since modern browsers track the latest standards pretty well)
So if you accept that the main difference between 2.0 and 2.1 is the JS runtime, client scripts executing in the browser are neither 2.0 or 2.1 in that sense.
a
☝️
its referring to the runtime engine and NS doesn't control which runtime engine a browser has so it doesn't affect client scripts.
a
I would not use 2.x, safe harbor…
💯 3
e
^ Same. I definitely would not advise using
2.x
oneself, but sometimes you do inherit someone else's
2.x
code, and so it is important to know the implications.
j
Agree, best to specify one or the other (preferably 2.1) and that way you know exactly what is happening.