Detect whether the internal date value is NaN.
Enqueue |job| on the internal job queue.
Get the metadata associated with an object.
A JSErrorCallback suitable for passing to |JS_ReportErrorNumberASCII| and
similar functions in concert with one of the |JSErrNum| error numbers.
Get an error type name from a JSExnType constant.
Returns nullptr for invalid arguments and JSEXN_INTERNALERR
Get the first SavedFrame object in this SavedFrame stack whose principals are
subsumed by the given |principals|. If there is no such frame, return
nullptr.
Get or set function’s reserved slot value.
fun
should be a function created with *WithReserved
API above.
Such functions have 2 reserved slots, and which
can be either 0 or 1.
This function only reports GC heap memory,
and not malloc allocated memory associated with GC things.
It reports the total of all memory for the whole Runtime.
This function reports memory used by a zone in bytes, this includes:
Add some or all property keys of obj to the id vector *props.
Returns true iff obj
has the WindowProxy Class (see SetWindowProxyClass).
Invoke cellCallback on every gray JSObject in the given zone.
Get the script private value associated with an object, if any.
In memory reporting, we have concept of “sundries”, line items which are too
small to be worth reporting individually. Under some circumstances, a memory
reporter gets tossed into the sundries bucket if it’s smaller than
MemoryReportingSundriesThreshold() bytes.
Hint that we expect a crash. Currently, the only thing that cares is the
breakpad injector, which (if loaded) will suppress minidump generation.
Instruct the runtime to restart draining the internal job queue after
stopping it with StopDrainingJobQueue.
Specify a callback to invoke when creating each JS object in the current
compartment, which may return a metadata object to associate with the
object.
Associates a WindowProxy with a Window (global object). windowProxy
must
have the Class set by SetWindowProxyClass.
Tell the JS engine which Class is used for WindowProxy objects. Used by the
functions below.
Instruct the runtime to stop draining the internal job queue.
Overload of StringIsArrayIndex taking a (char16_t*,length) pair. Behaves
the same as the JSLinearString version.
If obj
is a WindowProxy, get its associated Window (the compartment’s
global), else return obj
. This function is infallible and never returns
nullptr.
Use the runtime’s internal handling of job queues for Promise jobs.