Biggest trouble at the moment is that the syntax v...
# suitescript
e
Biggest trouble at the moment is that the syntax validator that NetSuite uses when you upload a script file doesn't fully understand ES6+
👍 2
a
Hi Erik, can you expand on this a little more? I can have the team looking into it. What type of Script did you upload? what was the error that yougot?
e
@Ashwin K. It has been a while since I've tried again, but when I was trying to leverage ES6+ in Client Scripts, the validator would choke on the backtick symbol for string templates and would also choke on Object initializers using variables. e.g.
Copy code
let a = 1;
let b = 2;
let c = 3;
let data = { a, b, c }; // This would cause an error when uploading
I understand 2.1 is not technically supported in Client Scripts, but it is a little confusing as to why given that the browser engine is in control there.
👍 1
a
Thanks, Eric. You are right, and we are aware about this issue. We have it cataloged as something we want to fix soon.
👍 1