
We have online training that is built using Articulate Storyline and we then package and send to our website host to publish. This was built like 10 years ago and the build is no longer supported. The Apps script that sends the results to a Google sheet is no longer working due to the change to V8.I have only just got access to the script and have no idea what needs changing to convert it from Rhino to V8 compatibility.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/c8b9a9bd-8473-4d92-afd9-2f6ae19f79aen%40googlegroups.com.
Toggle the runtime directly in the Apps Script editor:
Open your Apps Script project.
Click on Project Settings (the gear icon on the left sidebar).
Check the box that says Enable Chrome V8 runtime
There are a few changes that might cause your script to throw errors
1. Extraneous Comma in Object LiteralsRhino ignored trailing commas in object definitions; V8 will throw a syntax error.
🛑 Rhino (Broken in V8): var obj = { a: 1, b: 2, };
V8 (Fixed): const obj = { a: 1, b: 2 };
In Rhino, var had function-level scope. V8 introduces block-scoping. If you start swapping var for let or const, make sure you aren't trying to call a variable outside of the {} block it was defined in.
3. Logger.log() FormattingIn Rhino, Logger.log() allowed SQL-style formatting string inputs (like %s). V8 prefers standard string concatenation or, better yet, modern template literals.
🛑 Rhino: Logger.log("User %s logged in", username);
V8: Logger.log(\User ${username} logged in`);`
V8 is much stricter about modifying built-in prototypes. If your script alters standard objects (like adding custom methods directly to Array.prototype), it might behave unexpectedly or throw errors.
Are you encountering a specific error message after turning on V8, or would you like me to review a specific piece of your script for compatibility?