Skip to main content

Module globals

Module globals 

Source
Expand description

Recognition of well-known language builtins that Smelt does not model.

When a reference fails to resolve, the frontend asks this module whether the name is a language/runtime builtin. A builtin that fails to resolve is a MissingStdlib gap (Smelt should grow support for it); any other unresolved name is an UnresolvedReference.

The set is intentionally a recognition list, not a support list — names here may or may not be lowered yet. It only answers “is this a builtin?”.

Enums§

GlobalPresence
Compile-time availability of a global object member in the active target profile.

Functions§

global_member_presence
Classify a candidate global member name for the non-DOM Node-compatible profile.
is_javascript_global_builtin
Returns whether name is a well-known JavaScript/TypeScript global builtin (ECMAScript intrinsics plus widely available Web/Node runtime globals).