Supported JS APIs
APIs
Console
If the logging feature flag is enabled in the generated crate, it depends on wasi:logging, otherwise just on the
core WASI interfaces.
assertclearcountcountResetdebugdirdirXmlerrorgroupgroupCollapsedgroupEndinfologtabletimetimeEndtimeLogtracewarn
HTTP (fetch)
Only if the http feature flag is enabled in the generated crate. It depends on wasi:http.
fetchHeadersRequestResponseFormDataBlobFile
URL
URLURLSearchParams
Streams
Implemented by https://github.com/MattiasBuelens/web-streams-polyfill (opens in a new tab)
ByteLengthQueuingStrategyCountQueuingStrategyReadableByteStreamControllerReadableStreamReadableStreamBYOBReaderReadableStreamBYOBRequestReadableStreamDefaultControllerReadableStreamDefaultReaderTransformStreamTransformStreamDefaultControllerWritableStreamWritableStreamDefaultController
Timeout functions
setTimeoutclearTimeoutsetIntervalclearIntervalsetImmediate
Encoding
TextEncoderTextDecoderTextDecoderStreamTextEncoderStream
node:util
formatdeprecatedebugLoginspectisArrayisBooleanisNullisNullOrUndefinedisNumberisStringisSymbolisUndefinedisRegExpisObjectisDateisErrorisFunctionisPrimitiveisBufferlog_extendpromisifycallbackify
node:buffer
BufferINSPECT_MAX_BYTESkMaxLengthkStringMaxLengthconstantsSlowBuffer
node:fs
readFilereadFileSyncwriteFilewriteFileSync
node:process
argvargv0envcwd
base64-js
byteLengthtoByteArrayfromByteArray
ieee754
readwrite
Provided by QuickJS
-
Global:
parseIntparseFloatisNaNisFinitequickMicrotaskdecodeURIdecodeURIComponentencodeURIencodeURIComponentescapeunescapeInfinityNaNundefined[Symbol.toStringTag]
-
Object- static methods and properties:
creategetPrototypeOfsetPrototypeOfdefinePropertydefinePropertiesgetOwnPropertyNamesgetOwnPropertySymbolsgroupBykeysvaluesentriesisExtensiblepreventExtensionsgetOwnPropertyDescriptorgetOwnPropertyDescriptorsisassignsealfreezeisSealedisFrozenfromEntrieshasOwn
- methods and properties:
toStringtoLocaleStringvalueOfhasOwnPropertyisPrototypeOfpropertyIsEnumerable__proto____defineGetter____defineSetter____lookupGetter____lookupSetter__
- static methods and properties:
-
Function- methods and properties:
callapplybindtoString[Symbol.hasInstance]fileNamelineNumbercolumnNumber
- methods and properties:
-
Error- methods and properties:
namemessagetoString
- static methods and properties:
isErrorcaptureStackTracestackTraceLimitprepareStackTrace
- methods and properties:
-
Generator- methods and properties:
nextreturnthrow[Symbol.toStringTag]
- static methods and properties:
from
- methods and properties:
-
Iterator- static methods and properties:
from
- methods and properties:
dropfilterflatMapmaptakeeveryfindforEachsomereducetoArray[Symbol.iterator][Symbol.toStringTag]
- static methods and properties:
-
Array- static methods and properties:
isArrayfromof[Symbol.species]
- methods and properties:
atwithconcateverysomeforEachmapfilterreducereduceRightfillfindfindIndexfindLastfindLastIndexindexOflastIndexOfincludesjointoStringtoLocaleStringpoppushshiftunshiftreversetoReversedsorttoSortedslicesplicetoSplicedcopyWithinflatMapflatvalues[Symbol.iterator]keysentries
- static methods and properties:
-
Number- static methods and properties:
parseIntparseFloatisNaNisFiniteisIntegerisSafeIntegerMAX_VALUEMIN_VALUENaNNEGATIVE_INFINITYPOSITIVE_INFINITYEPSILONMAX_SAFE_INTEGERMIN_SAFE_INTEGER
- methods and properties:
toExponentialtoFixedtoPrecisiontoStringtoLocaleStringvalueOf
- static methods and properties:
-
Boolean- methods and properties:
toStringvalueOf
- methods and properties:
-
String- static methods and properties:
fromCharCodefromCodePointraw
- methods and properties:
lengthatcharCodeAtcharAtconcatcodePointAtisWellFormedtoWellFormedindexOflastIndexOfincludesendsWithstartsWithmatchmatchAllsearchsplitsubstringsubstrslicerepeatreplacereplaceAllpadEndpadStarttrimtrimEndtrimRighttrimStarttrimLefttoStringvalueOflocaleComparenormalizetoLowerCasetoUpperCasetoLocaleLowerCasetoLocaleUpperCase[Symbol.iterator]anchorbigblinkboldfixedfontcolorfontsizeitalicslinksmallstrikesubsup
- static methods and properties:
-
Symbol- static methods and properties:
forkeyFor
- methods and properties:
toStringvalueOfdescription[Symbol.toPrimitive][Symbol.toStringTag]
- static methods and properties:
-
Map- static methods and properties:
groupBy[Symbol.species]
- methods and properties:
setgethasdeleteclearsizeforEachvalueskeysentries[Symbol.iterator][Symbol.toStringTag]
- static methods and properties:
-
Set- static methods and properties:
[Symbol.species]
- methods and properties:
addhasdeleteclearsizeforEachisDisjointFromisSubsetOfisSupersetOfintersectiondifferencesymmetricDifferenceunionvalueskeys[Symbol.iterator]entries[Symbol.toStringTag]
- static methods and properties:
-
WeakMap- methods and properties:
setgethasdelete[Symbol.toStringTag]
- methods and properties:
-
WeakSet- methods and properties:
addhasdelete[Symbol.toStringTag]
- methods and properties:
-
GeneratorFunction- methods and properties:
[Symbol.toStringTag]
- methods and properties:
-
Math- static methods and properties:
minmaxabsfloorceilroundsqrtacosasinatanatan2cosexplogpowsintantruncsigncoshsinhtanhacoshasinhatanhexpm1log1plog2log10cbrthypotrandomf16roundfroundimulclz32sumPrecise[Symbol.toStringTag]ELN10LN2LOG2ELOG10EPISQRT1_2SQRT2
- static methods and properties:
-
Reflect- static methods and properties:
applyconstructdefinePropertydeletePropertygetgetOwnPropertyDescriptorgetPrototypeOfhasisExtensibleownKeyspreventExtensionssetsetPrototypeOf[Symbol.toStringTag]
- static methods and properties:
-
RegExp- static methods and properties:
escape[Symbol.species]
- methods and properties:
flagssourceglobalignoreCasemultilinedotAllunicodeunicodeSetsstickyhasIndicesexeccompiletesttoString[Symbol.replace][Symbol.match][Symbol.matchAll][Symbol.search][Symbol.split]
- static methods and properties:
-
JSON- static methods and properties:
parsestringify[Symbol.toStringTag]
- static methods and properties:
-
Promise- static methods and properties:
resolverejectallallSettledanytryracewithResolvers[Symbol.species]
- methods and properties:
thencatchfinally[Symbol.toStringTag]
- static methods and properties:
-
AsyncFunction- methods and properties:
[Symbol.toStringTag]
- methods and properties:
-
AsyncIterator- methods and properties:
nextreturnthrow
- methods and properties:
-
AsyncGeneratorFunction- methods and properties:
[Symbol.toStringTag]
- methods and properties:
-
AsyncGenerator- methods and properties:
nextreturnthrow[Symbol.toStringTag]
- methods and properties:
-
Date- static methods and properties:
nowparseUTC
- methods and properties:
valueOftoString[Symbol.toPrimitive]toUTCStringtoGMTStringtoISOStringtoDateStringtoTimeStringtoLocaleStringtoLocaleDateStringtoLocaleTimeStringgetTimezoneOffsetgetTimegetYeargetFullYeargetUTCFullYeargetMonthgetUTCMonthgetDategetUTCDategetHoursgetUTCHoursgetMinutesgetUTCMinutesgetSecondsgetUTCSecondsgetMillisecondsgetUTCMillisecondsgetDaygetUTCDaysetTimesetMillisecondssetUTCMillisecondssetSecondssetUTCSecondssetMinutessetUTCMinutessetHourssetUTCHourssetDatesetUTCDatesetMonthsetUTCMonthsetYearsetFullYearsetUTCFullYeartoJSON
- static methods and properties:
-
BigInt- static methods and properties:
asIntNasUintN
- methods and properties:
toStringvalueOf[Symbol.toStringTag]
- static methods and properties:
-
ArrayBuffer- static methods and properties:
isView[Symbol.species
- methods and properties:
byteLengthmaxByteLengthresizeabledetachedresizeslicetransfertransferToFixedLength[Symbol.toStringTag]
- static methods and properties:
-
SharedArrayBuffer- static methods and properties:
[Symbol.species]
- methods and properties:
byteLengthmaxByteLengthgrowablegrowslice[Symbol.toStringTag]
- static methods and properties:
-
Typed arrays (
Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,BigInt64Array,BigUint64Array,Float32Array,Float64Array,Float16Array)- static methods and properties:
fromof[Symbol.species]
- methods and properties:
lengthatwithbufferbyteLengthsetbyteOffsetvalues[Symbol.iterator]keysentries[Symbol.toStringTag]copyWithineverysomeforEachmapfilterreducereduceRightfillfindfindIndexfindLastfindLastIndexreversetoReversedslicesubarraysorttoSortedjointoLocaleStringindexOflastIndexOfincludes
- static methods and properties:
-
DataView- methods and properties:
bufferbyteLengthbyteOffsetgetInt8getUint8getInt16getUint16getInt32getUint32getBigInt64getBigUint64getFloat16getFloat32getFloat64setInt8setUint8setInt16setUint16setInt32setUint32setBigInt64setBigUint64setFloat16setFloat32setFloat64[Symbol.toStringTag]
- methods and properties:
-
Atomics- static methods and properties:
addandorsubxorexchangecompareExchangeloadstoreisLockFreepausewaitnotify[Symbol.toStringTag]
- static methods and properties:
-
Performance- methods and properties:
now
- methods and properties:
-
WeakRef- methods and properties:
deref[Symbol.toStringTag]
- methods and properties:
-
FinalizationRegistry- methods and properties:
registerunregister[Symbol.toStringTag]
- methods and properties:
-
Callsite- methods and properties:
-
isNativegetFileNamegetFunctiongetFunctionNamegetColumnNumbergetLineNumber[Symbol.toStringTag]
- methods and properties:
-
-
Proxy