Skip to main content

Module builtins

Module builtins 

Source
Expand description

Builtin op handlers (compiler-emitted CallBuiltin ids) plus the JS standard library (console, Math, JSON, Object, array/string methods) reachable from the host. Handlers pop their arguments off the VM operand stack and return the result value, which the VM pushes back.

Functionsยง

call_builtin_function
Call a resolved builtin function (global or namespace.method).
call_type_method
Dispatch recv.name(args) for the built-in prototype methods.
construct_builtin
Construct via new for the builtin constructors.
install
Register every node-js builtin id on a VM.
is_known_builtin
numeric_hook
Host callback for arithmetic fusevm cannot complete natively (a non-Int/ non-Float operand). Supplies JavaScript + concatenation and coercion.