Skip to main content

BUILTIN_ARITY

Constant BUILTIN_ARITY 

Source
pub const BUILTIN_ARITY: &[(&str, &str, u32)];
Expand description

The name and length of one intrinsic each, sorted by key.

The key is how crate::host::JsObj::Builtin spells the function: a bare global (parseInt), a constructor (Array), a static (Array.from), or a prototype-method thunk (@proto:Array:slice). name is repeated rather than derived because the legacy aliases share one function object with the name of the method they alias — String.prototype.trimLeft.name is trimStart.