Skip to main content

Module object

Module object 

Source
Expand description

The Rust port of the prelude’s ObjectConstructor statics — Object.keys/values/entries/hasOwn/is — reading the $ObjectShape field-name/field-value arrays directly. Every per-arity object subtype subtypes $ObjectShape, so one matches_ty test covers them all; any other value takes the “no fields” path ([]/false), and a null receiver throws a catchable Error, matching the Wasm bodies in codegen/prelude/object_shape.rs.

Functions§

declare
install