My Stuff
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Comments
-
Hi Erick, The support team has confirmed (#4365429) that this is expected behavior for 2.0 since "const" is not supported. I'm not sure I fully understand why they chose to handle it this way instead of to error or parse as a normal var. This behavior is prone to cause hard to detect bugs, especially since it only occurs…
-
Hi Erick, I have a test script running in our account with a deployment ID of 587. Using "const testvar ..." Example Suitelet /** * @NApiVersion 2.x * @NScriptType Suitelet */ define([], function() { return { onRequest: function (context) { var output = []; for(var x = 0; x < 3; x++) { const testvar = { val: 1 };…