API - sloanyang/raspberrry2v8 GitHub Wiki

The isolate and kernel are global objects every program can access.

isolate

isolate.data

Data provided by parent isolate.

isolate.env

Environment provided by parent isolate (usually inherited).

isolate.system

Environment provided by kernel (system services).

isolate.exit([value])

Exit isolate and return value or undefined.

isolate.log([data], [...])

Write into isolate log. Note, console.log writes to stdout by default.

kernel

kernel.version()

Get kernel version.