Expand description
Building blocks for the native objects the host crates install: promises settled later from Rust, errors, JSON values as JS values, accessors on plain objects.
Structs§
- Settler
- The resolve and reject of a promise kept alive until one of them runs.
Functions§
- deferred⚠
- A pending promise and what settles it.
- error⚠
- A
TypeError(orRangeError) or aDOMExceptionnamedname, as a value. - frozen_
strings ⚠ - A frozen array of strings.
- getter⚠
- global⚠
- has_
warned - install_
object ⚠ - An object for a host API, held for the context and reachable as the hidden global
name. - is_
string ⚠ - method⚠
- rejected⚠
- rejected_
with ⚠ - resolved⚠
- string_
arg ⚠ - stringify⚠
JSON.stringify(v), orNonewhen it throws or givesundefined.- throw⚠
- Throws
error(name, msg); the host function returns what this returns. - to_js⚠
- truthy⚠
- warn_
compat ⚠ console.warnonce perkeyfor this thread; false whenkeywas already said.