Skip to main content
Version: Next

Web API

The globalThis global object, compatible with WinterTC web platform APIs.

See

MDN - Web APIs.

Namespaces

NamespaceDescription

TextDecoder

TextEncoder

Classes

ClassDescription

TextDecoder

Decode bytes array into string text.

See

TextDecoder

TextEncoder

Encode string text into bytes, it only supports "utf-8" encoding.

See

TextEncoder

Type Aliases

Type AliasDescription

TypedArray

TypedArray

Functions

FunctionDescription

clearInterval

Cancel a repeated timer previously established by calling setInterval.

Throws

Throws TypeError if ID is not an integer.

clearTimeout

Cancel a timeout previously established by calling setTimeout.

Throws

Throws TypeError if ID is not an integer.

queueMicrotask

A microtask is a short function which is executed after the function or module which created it exits and only if the JavaScript execution stack is empty, but before returning control to the event loop being used to drive the script's execution environment.

Throws

Throws TypeError if callback is not a function.

reportError

Dispatch an uncaught exception. Similar to synchronous version of setTimeout(() => {throw error;}, 0);.

setInterval

Set a repeated timer that calls a function, with a fixed time delay between each call.

Throws

Throws TypeError if callback is not a function, or delay is neither a number or undefined.

setTimeout

Set a timer which executes a function or specified piece of code once the timer expires.

Throws

Throws TypeError if callback is not a function, or delay is neither a number or undefined.