Sval for legacy Rhino engine on Google Apps Scripts
This engine is enabled when you uncheck the Chrome V8 option in your apps script settings. Or if you have an older project.
You should see "runtimeVersion" : "DEPRECATED_ES5"
in your appsscript.json configuration file.
To add this to your project you can download the sval.min.gs file and put it in the apps script files or you can include it as a library by searching for the library ID
1bzFNdS8kKRoWl7YjZne6WJho06Cb8oZhg-pZHMd4gnoS5oH0qb4Fn5cv
Siubaak is the original author of Sval and all credit goes to that project. There are only slight modifications made to this one due to the rhino engine not recognizing dot notation for properties with certain keywords as values. Objects with properties try
, catch
, finally
, throw
, const
, var
, and return
, are all updated to use string representations.