globals

print(text)

Print out text to the console. Same function as console.log

Warning

Ensure that the string is < 4096 characters, or else it will not print out the intended string.

Arguments:
  • text (string) – String to print out to console.
version()

Get the current version of V8 running.

Returns:A string containing the current version of V8 running.
immediateMode(enable)

Enable or disable “immediate mode”. Used when extreme precision for uv.misc.hrtime() is needed.

Warning

CPU usage will be extremely high if immediateMode is enabled.

Arguments:
  • enable (bool) – Enable/disable immediate mode.
load(file)

Load and evaluate a JavaScript file.

Arguments:
  • file (string) – Path to the JavaScript file. The path can be relative to the current working directory.