Package-level declarations

Types

Link copied to clipboard
@Singleton
@Intrinsic(global = "navigator")
class NavigatorBuiltin : AbstractJsIntrinsic, ReadOnlyProxyObject

Built-in which provides the navigator object in the global JavaScript scope; this object mimics a subset of what is available in browsers.

Link copied to clipboard
@Singleton
@Intrinsic(global = "queueMicrotask")
class QueueMicrotaskCallable @Inject constructor(executorProvider: GuestExecutorProvider) : AbstractJsIntrinsic, ProxyExecutable

Mounts a callable intrinsic function at the name queueMicrotask, in compliance with Web JavaScript standards which expect this function to be available in the global scope. The queueMicrotask function is used to queue a chunk of code to execute safely on the JavaScript event loop.

Link copied to clipboard
@Singleton
@Intrinsic(global = "structuredClone")
class StructuredCloneBuiltin : AbstractJsIntrinsic, ProxyExecutable

Implements the structuredClone global function for JavaScript, which is used to create a deep copy of an object, usually for the purpose of transferring it between different execution contexts.