Registers an event listener in the global scope, which will be called
synchronously whenever the event type
is dispatched.
Shows the given message and waits for the enter key pressed.
Decodes a string of data which has been encoded using base-64 encoding.
Creates a base-64 ASCII encoded string from the input string.
Cancels a timed, repeating action which was previously started by a call
to setInterval()
Cancels a scheduled action initiated by setTimeout()
Shows the given message and waits for the answer. Returns the user's answer as boolean.
Create a new ImageBitmap
object from a given source.
Dispatches an event in the global scope, synchronously invoking any registered event listeners for this event in the appropriate order. Returns false if event is cancelable and at least one of the event handlers which handled this event called Event.preventDefault(). Otherwise it returns true.
Fetch a resource from the network. It returns a Promise
that resolves to the
Response
to that Request
, whether it is successful or not.
- createBindGroup
- createBindGroupLayout
- createBuffer
- createCommandEncoder
- createComputePipeline
- createComputePipelineAsync
- createPipelineLayout
- createQuerySet
- createRenderBundleEncoder
- createRenderPipeline
- createRenderPipelineAsync
- createSampler
- createShaderModule
- createTexture
- destroy
- features
- label
- limits
- lost
- popErrorScope
- pushErrorScope
- queue
- maxBindGroups
- maxBindingsPerBindGroup
- maxBufferSize
- maxColorAttachmentBytesPerSample
- maxColorAttachments
- maxComputeInvocationsPerWorkgroup
- maxComputeWorkgroupSizeX
- maxComputeWorkgroupSizeY
- maxComputeWorkgroupSizeZ
- maxComputeWorkgroupStorageSize
- maxComputeWorkgroupsPerDimension
- maxDynamicStorageBuffersPerPipelineLayout
- maxDynamicUniformBuffersPerPipelineLayout
- maxInterStageShaderComponents
- maxSampledTexturesPerShaderStage
- maxSamplersPerShaderStage
- maxStorageBufferBindingSize
- maxStorageBuffersPerShaderStage
- maxStorageTexturesPerShaderStage
- maxTextureArrayLayers
- maxTextureDimension1D
- maxTextureDimension2D
- maxTextureDimension3D
- maxUniformBufferBindingSize
- maxUniformBuffersPerShaderStage
- maxVertexAttributes
- maxVertexBufferArrayStride
- maxVertexBuffers
- minStorageBufferOffsetAlignment
- minUniformBufferOffsetAlignment
Shows the given message and waits for the user's input. Returns the user's input as string.
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. This event loop may be either the main event loop or the event loop driving a web worker.
Remove a previously registered event listener from the global scope
Dispatch an uncaught exception. Similar to a synchronous version of:
Repeatedly calls a function , with a fixed time delay between each call.
Sets a timer which executes a function once after the delay (in milliseconds) elapses. Returns an id which may be used to cancel the timeout.
Creates a deep copy of a given value using the structured clone algorithm.
Options for assigning fields using with()
or entire objects with
from()
.
Any of these types can be passed to Temporal methods instead of a calendar ID.
Options to control the result of until()
and since()
methods in
Temporal
types.
Options for assigning fields using Duration.prototype.with()
or entire
objects with Duration.from()
, and for arithmetic with
Duration.prototype.add()
and Duration.prototype.subtract()
.
The round
method of the Temporal.Duration
accepts one required
parameter. If a string is provided, the resulting Temporal.Duration
object will be rounded to that unit. If an object is provided, the
smallestUnit
and/or largestUnit
property is required, while other
properties are optional. A string parameter is treated the same as an
object whose smallestUnit
property value is that string.
Options to control behavior of Duration.prototype.total()
A Temporal.Instant
is an exact point in time, with a precision in
nanoseconds. No time zone or calendar information is present. Therefore,
Temporal.Instant
has no concept of days, months, or even hours.
The Temporal.Now
object has several methods which give information about
the current date, time, and time zone.
A Temporal.PlainDate
represents a calendar date. "Calendar date" refers to the
concept of a date as expressed in everyday usage, independent of any time
zone. For example, it could be used to represent an event on a calendar
which happens during the whole day no matter which time zone it's happening
in.
A Temporal.PlainDateTime
represents a calendar date and wall-clock time, with
a precision in nanoseconds, and without any time zone. Of the Temporal
classes carrying human-readable time information, it is the most general
and complete one. Temporal.PlainDate
, Temporal.PlainTime
, Temporal.PlainYearMonth
,
and Temporal.PlainMonthDay
all carry less information and should be used when
complete information is not required.
- add
- calendarId
- compare
- day
- dayOfWeek
- dayOfYear
- daysInMonth
- daysInWeek
- daysInYear
- equals
- era
- eraYear
- from
- hour
- inLeapYear
- microsecond
- millisecond
- minute
- month
- monthCode
- monthsInYear
- nanosecond
- round
- second
- since
- subtract
- toJSON
- toLocaleString
- toPlainDate
- toPlainTime
- toString
- toZonedDateTime
- until
- valueOf
- weekOfYear
- with
- withCalendar
- withPlainTime
- year
- yearOfWeek
A Temporal.PlainMonthDay
represents a particular day on the calendar, but
without a year. For example, it could be used to represent a yearly
recurring event, like "Bastille Day is on the 14th of July."
A Temporal.PlainTime
represents a wall-clock time, with a precision in
nanoseconds, and without any time zone. "Wall-clock time" refers to the
concept of a time as expressed in everyday usage — the time that you read
off the clock on the wall. For example, it could be used to represent an
event that happens daily at a certain time, no matter what time zone.
A Temporal.PlainYearMonth
represents a particular month on the calendar. For
example, it could be used to represent a particular instance of a monthly
recurring event, like "the June 2019 meeting".
When the name of a unit is provided to a Temporal API as a string, it is usually singular, e.g. 'day' or 'hour'. But plural unit names like 'days' or 'hours' are also accepted.
round
methods take one required parameter. If a string is provided, the
resulting Temporal.Duration
object will be rounded to that unit. If an
object is provided, its smallestUnit
property is required while other
properties are optional. A string is treated the same as an object whose
smallestUnit
property value is that string.
Any of these types can be passed to Temporal methods instead of a time zone ID.
Options for conversions of Temporal.PlainDateTime
to Temporal.Instant
Options for outputting precision in toString() on types with seconds
Options to control behaviour of ZonedDateTime.prototype.getTimeZoneTransition()
- add
- calendarId
- compare
- day
- dayOfWeek
- dayOfYear
- daysInMonth
- daysInWeek
- daysInYear
- epochMilliseconds
- epochNanoseconds
- equals
- era
- eraYear
- from
- getTimeZoneTransition
- hour
- hoursInDay
- inLeapYear
- microsecond
- millisecond
- minute
- month
- monthCode
- monthsInYear
- nanosecond
- offset
- offsetNanoseconds
- round
- second
- since
- startOfDay
- subtract
- timeZoneId
- toInstant
- toJSON
- toLocaleString
- toPlainDate
- toPlainDateTime
- toPlainTime
- toString
- until
- valueOf
- weekOfYear
- with
- withCalendar
- withPlainTime
- withTimeZone
- year
- yearOfWeek
The WebAssembly.compile()
function compiles WebAssembly binary code into a
WebAssembly.Module
object. This function is useful if it is necessary to compile
a module before it can be instantiated (otherwise, the WebAssembly.instantiate()
function should be used).
The WebAssembly.CompileError
object indicates an error during WebAssembly decoding or validation.
The WebAssembly.compileStreaming()
function compiles a WebAssembly.Module
directly from a streamed underlying source. This function is useful if it is
necessary to a compile a module before it can be instantiated (otherwise, the
WebAssembly.instantiateStreaming()
function should be used).
A WebAssembly.Global
object represents a global variable instance, accessible from
both JavaScript and importable/exportable across one or more WebAssembly.Module
instances. This allows dynamic linking of multiple modules.
The GlobalDescriptor
describes the options you can pass to
new WebAssembly.Global()
.
A WebAssembly.Instance
object is a stateful, executable instance of a WebAssembly.Module
.
Instance objects contain all the Exported WebAssembly functions that allow calling into
WebAssembly code from JavaScript.
The WebAssembly.instantiate() function allows you to compile and instantiate WebAssembly code.
The WebAssembly.instantiateStreaming()
function compiles and instantiates a
WebAssembly module directly from a streamed underlying source. This is the most
efficient, optimized way to load wasm code.
The WebAssembly.LinkError
object indicates an error during module instantiation
(besides traps from the start function).
The WebAssembly.Memory
object is a resizable ArrayBuffer
or SharedArrayBuffer
that
holds the raw bytes of memory accessed by a WebAssembly Instance.
The MemoryDescriptor
describes the options you can pass to
new WebAssembly.Memory()
.
A WebAssembly.Module
object contains stateless WebAssembly code that has already been compiled
by the browser — this can be efficiently shared with Workers, and instantiated multiple times.
A ModuleExportDescriptor
is the description of a declared export in a
WebAssembly.Module
.
A ModuleImportDescriptor
is the description of a declared import in a
WebAssembly.Module
.
The WebAssembly.RuntimeError
object is the error type that is thrown whenever WebAssembly
specifies a trap.
The WebAssembly.Table()
object is a JavaScript wrapper object — an array-like structure
representing a WebAssembly Table, which stores function references. A table created by
JavaScript or in WebAssembly code will be accessible and mutable from both JavaScript
and WebAssembly.
The TableDescriptor
describes the options you can pass to
new WebAssembly.Table()
.
The WebAssembly.validate()
function validates a given typed array of
WebAssembly binary code, returning whether the bytes form a valid wasm
module (true
) or not (false
).
The value returned from WebAssembly.instantiate
.