SerialExecutorprotocol from the standard library. To utilize it:
Arrayclass that exposes its properties in a type-safe and Swifty way.
Iterator type for
JSArray, conforming to
IteratorProtocolfrom the standard library, which allows easy iteration over elements of
Dateclass that exposes its properties in a type-safe way. This doesn't 100% match the JS API, for example
DateAPI that are not consistent across browsers and JS implementations are not exposed in a type-safe manner, you should access the underlying
jsObjectproperty if you need those.
Errorclass that exposes its properties in a type-safe way.
This timer is an abstraction over
JSClosure.release()on it when the timer is deallocated. As a user, you have to hold a reference to a
JSTimerinstance for it to stay valid. The
JSTimerAPI is also intentionally trivial, the timer is started right away, and the only way to invalidate the timer is to bring the reference count of the
JSTimerinstance to zero. For invalidation you should either store the timer in an optional property and assign
nilto it, or deallocate the object that owns the timer.
TypedArrayclasses that exposes their properties in a type-safe way.
Uint8ClampedArrayclass that exposes its properties in a type-safe and Swifty way.
BigIntclass that exposes its properties in a type-safe and Swifty way.
JSObjectwrapper that enables throwing method calls capturing
Symbolclass that exposes its properties in a type-safe and Swifty way.
Types conforming to this protocol can be constructed from