-
Notifications
You must be signed in to change notification settings - Fork 113
Additional javascript routines
Due to realisation pecularities, where is no CommonJS-style or other module loading system. Every JavaScript code runs withing the same global namespace. And it's very important to keep global namespace clean as possible.
In addition to the standard JavaScript v8 library, there is a special global functions available to the developer.
Reads file from the filesystem and loads it into the memory. File contents must be a valid JSON-object.
The only argument is a file name from the local filesystem.
Returns loaded JSON object or null in case of errors.
Loads and executes particular javascript file from the local filesystem.
The script executes withing the global namespace.
[CHECK] If an error occurred during the execution it won't stop callee from futher execution, but erroneous script will not be executed completely (will stop on the first error);