QuickBEAM.VM.Runtime.Constructors (QuickBEAM v0.10.9)

Copy Markdown View Source

Helpers for looking up and invoking globally registered JS constructors.

Summary

Functions

Returns the class prototype for the globally registered constructor name.

Invokes a global constructor and falls back when it is not available.

Invokes a global constructor and updates its object map before prototype patching.

Looks up a constructor by JavaScript global name.

Associates a constructor with its class prototype and static prototype property.

Registers a constructor without creating a prototype.

Registers a constructor using options such as :module, :prototype, and :auto_proto.

Registers a constructor with a freshly wrapped prototype map and optional parent prototype.

Functions

class_proto(name)

Returns the class prototype for the globally registered constructor name.

construct(name, args, fallback)

Invokes a global constructor and falls back when it is not available.

construct(name, args, fallback, update_object)

Invokes a global constructor and updates its object map before prototype patching.

lookup(name)

Looks up a constructor by JavaScript global name.

put_prototype(ctor, proto)

Associates a constructor with its class prototype and static prototype property.

register(name, constructor)

Registers a constructor without creating a prototype.

register(name, constructor, opts)

Registers a constructor using options such as :module, :prototype, and :auto_proto.

register(name, constructor, proto_properties, parent)

Registers a constructor with a freshly wrapped prototype map and optional parent prototype.