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
newfor the builtin constructors. - error_
string - A short
Name: messagestring for an error value (used when an await rejection unwinds as a thrown error). - function_
builtin_ method Function.prototypemethods (call/apply/bind) plusSymbol.prototype/ generator handling done elsewhere. ReturnsOk(None)ifnameis not one of these (so the caller can try statics).- get_
property - Read
recv.name(also the computed-key path for string keys). Walks own properties, accessors, and the prototype chain (class methods / getters). - has_
property key in objrespecting the prototype chain.- install
- Register every node-js builtin id on a VM.
- is_
known_ builtin - is_
object_ builtin_ method - numeric_
hook - Host callback for arithmetic fusevm cannot complete natively (a non-
Int/ non-Floatoperand). Supplies JavaScript+concatenation and coercion. - object_
builtin_ method - Dispatch an
Object.prototypebuiltin method on an object/instance. - proto_
method - Dispatch a
@proto:<Ctor>:<method>thunk (a method read off a builtin prototype, e.g.Object.prototype.toString) againstrecv(its invoke-timethis).Object.prototype.toStringyields the[object Tag]brand string libraries type-check on; every other method routes through normal method dispatch onrecv.