xref: /third_party/node/doc/api/globals.html (revision 1cb0ef41)
11cb0ef41Sopenharmony_ci<!DOCTYPE html>
21cb0ef41Sopenharmony_ci<html lang="en">
31cb0ef41Sopenharmony_ci<head>
41cb0ef41Sopenharmony_ci  <meta charset="utf-8">
51cb0ef41Sopenharmony_ci  <meta name="viewport" content="width=device-width">
61cb0ef41Sopenharmony_ci  <meta name="nodejs.org:node-version" content="v18.20.1">
71cb0ef41Sopenharmony_ci  <title>Global objects | Node.js v18.20.1 Documentation</title>
81cb0ef41Sopenharmony_ci  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic&display=fallback">
91cb0ef41Sopenharmony_ci  <link rel="stylesheet" href="assets/style.css">
101cb0ef41Sopenharmony_ci  <link rel="stylesheet" href="assets/hljs.css">
111cb0ef41Sopenharmony_ci  <link rel="canonical" href="https://nodejs.org/api/globals.html">
121cb0ef41Sopenharmony_ci  <script async defer src="assets/api.js" type="text/javascript"></script>
131cb0ef41Sopenharmony_ci  
141cb0ef41Sopenharmony_ci</head>
151cb0ef41Sopenharmony_ci<body class="alt apidoc" id="api-section-globals">
161cb0ef41Sopenharmony_ci  <div id="content" class="clearfix">
171cb0ef41Sopenharmony_ci    <div id="column2" class="interior">
181cb0ef41Sopenharmony_ci      <div id="intro" class="interior">
191cb0ef41Sopenharmony_ci        <a href="/" title="Go back to the home page">
201cb0ef41Sopenharmony_ci          Node.js
211cb0ef41Sopenharmony_ci        </a>
221cb0ef41Sopenharmony_ci      </div>
231cb0ef41Sopenharmony_ci      <ul>
241cb0ef41Sopenharmony_ci<li><a href="documentation.html" class="nav-documentation">About this documentation</a></li>
251cb0ef41Sopenharmony_ci<li><a href="synopsis.html" class="nav-synopsis">Usage and example</a></li>
261cb0ef41Sopenharmony_ci</ul>
271cb0ef41Sopenharmony_ci<hr class="line">
281cb0ef41Sopenharmony_ci<ul>
291cb0ef41Sopenharmony_ci<li><a href="assert.html" class="nav-assert">Assertion testing</a></li>
301cb0ef41Sopenharmony_ci<li><a href="async_context.html" class="nav-async_context">Asynchronous context tracking</a></li>
311cb0ef41Sopenharmony_ci<li><a href="async_hooks.html" class="nav-async_hooks">Async hooks</a></li>
321cb0ef41Sopenharmony_ci<li><a href="buffer.html" class="nav-buffer">Buffer</a></li>
331cb0ef41Sopenharmony_ci<li><a href="addons.html" class="nav-addons">C++ addons</a></li>
341cb0ef41Sopenharmony_ci<li><a href="n-api.html" class="nav-n-api">C/C++ addons with Node-API</a></li>
351cb0ef41Sopenharmony_ci<li><a href="embedding.html" class="nav-embedding">C++ embedder API</a></li>
361cb0ef41Sopenharmony_ci<li><a href="child_process.html" class="nav-child_process">Child processes</a></li>
371cb0ef41Sopenharmony_ci<li><a href="cluster.html" class="nav-cluster">Cluster</a></li>
381cb0ef41Sopenharmony_ci<li><a href="cli.html" class="nav-cli">Command-line options</a></li>
391cb0ef41Sopenharmony_ci<li><a href="console.html" class="nav-console">Console</a></li>
401cb0ef41Sopenharmony_ci<li><a href="corepack.html" class="nav-corepack">Corepack</a></li>
411cb0ef41Sopenharmony_ci<li><a href="crypto.html" class="nav-crypto">Crypto</a></li>
421cb0ef41Sopenharmony_ci<li><a href="debugger.html" class="nav-debugger">Debugger</a></li>
431cb0ef41Sopenharmony_ci<li><a href="deprecations.html" class="nav-deprecations">Deprecated APIs</a></li>
441cb0ef41Sopenharmony_ci<li><a href="diagnostics_channel.html" class="nav-diagnostics_channel">Diagnostics Channel</a></li>
451cb0ef41Sopenharmony_ci<li><a href="dns.html" class="nav-dns">DNS</a></li>
461cb0ef41Sopenharmony_ci<li><a href="domain.html" class="nav-domain">Domain</a></li>
471cb0ef41Sopenharmony_ci<li><a href="errors.html" class="nav-errors">Errors</a></li>
481cb0ef41Sopenharmony_ci<li><a href="events.html" class="nav-events">Events</a></li>
491cb0ef41Sopenharmony_ci<li><a href="fs.html" class="nav-fs">File system</a></li>
501cb0ef41Sopenharmony_ci<li><a href="globals.html" class="nav-globals active">Globals</a></li>
511cb0ef41Sopenharmony_ci<li><a href="http.html" class="nav-http">HTTP</a></li>
521cb0ef41Sopenharmony_ci<li><a href="http2.html" class="nav-http2">HTTP/2</a></li>
531cb0ef41Sopenharmony_ci<li><a href="https.html" class="nav-https">HTTPS</a></li>
541cb0ef41Sopenharmony_ci<li><a href="inspector.html" class="nav-inspector">Inspector</a></li>
551cb0ef41Sopenharmony_ci<li><a href="intl.html" class="nav-intl">Internationalization</a></li>
561cb0ef41Sopenharmony_ci<li><a href="modules.html" class="nav-modules">Modules: CommonJS modules</a></li>
571cb0ef41Sopenharmony_ci<li><a href="esm.html" class="nav-esm">Modules: ECMAScript modules</a></li>
581cb0ef41Sopenharmony_ci<li><a href="module.html" class="nav-module">Modules: <code>node:module</code> API</a></li>
591cb0ef41Sopenharmony_ci<li><a href="packages.html" class="nav-packages">Modules: Packages</a></li>
601cb0ef41Sopenharmony_ci<li><a href="net.html" class="nav-net">Net</a></li>
611cb0ef41Sopenharmony_ci<li><a href="os.html" class="nav-os">OS</a></li>
621cb0ef41Sopenharmony_ci<li><a href="path.html" class="nav-path">Path</a></li>
631cb0ef41Sopenharmony_ci<li><a href="perf_hooks.html" class="nav-perf_hooks">Performance hooks</a></li>
641cb0ef41Sopenharmony_ci<li><a href="permissions.html" class="nav-permissions">Permissions</a></li>
651cb0ef41Sopenharmony_ci<li><a href="process.html" class="nav-process">Process</a></li>
661cb0ef41Sopenharmony_ci<li><a href="punycode.html" class="nav-punycode">Punycode</a></li>
671cb0ef41Sopenharmony_ci<li><a href="querystring.html" class="nav-querystring">Query strings</a></li>
681cb0ef41Sopenharmony_ci<li><a href="readline.html" class="nav-readline">Readline</a></li>
691cb0ef41Sopenharmony_ci<li><a href="repl.html" class="nav-repl">REPL</a></li>
701cb0ef41Sopenharmony_ci<li><a href="report.html" class="nav-report">Report</a></li>
711cb0ef41Sopenharmony_ci<li><a href="single-executable-applications.html" class="nav-single-executable-applications">Single executable applications</a></li>
721cb0ef41Sopenharmony_ci<li><a href="stream.html" class="nav-stream">Stream</a></li>
731cb0ef41Sopenharmony_ci<li><a href="string_decoder.html" class="nav-string_decoder">String decoder</a></li>
741cb0ef41Sopenharmony_ci<li><a href="test.html" class="nav-test">Test runner</a></li>
751cb0ef41Sopenharmony_ci<li><a href="timers.html" class="nav-timers">Timers</a></li>
761cb0ef41Sopenharmony_ci<li><a href="tls.html" class="nav-tls">TLS/SSL</a></li>
771cb0ef41Sopenharmony_ci<li><a href="tracing.html" class="nav-tracing">Trace events</a></li>
781cb0ef41Sopenharmony_ci<li><a href="tty.html" class="nav-tty">TTY</a></li>
791cb0ef41Sopenharmony_ci<li><a href="dgram.html" class="nav-dgram">UDP/datagram</a></li>
801cb0ef41Sopenharmony_ci<li><a href="url.html" class="nav-url">URL</a></li>
811cb0ef41Sopenharmony_ci<li><a href="util.html" class="nav-util">Utilities</a></li>
821cb0ef41Sopenharmony_ci<li><a href="v8.html" class="nav-v8">V8</a></li>
831cb0ef41Sopenharmony_ci<li><a href="vm.html" class="nav-vm">VM</a></li>
841cb0ef41Sopenharmony_ci<li><a href="wasi.html" class="nav-wasi">WASI</a></li>
851cb0ef41Sopenharmony_ci<li><a href="webcrypto.html" class="nav-webcrypto">Web Crypto API</a></li>
861cb0ef41Sopenharmony_ci<li><a href="webstreams.html" class="nav-webstreams">Web Streams API</a></li>
871cb0ef41Sopenharmony_ci<li><a href="worker_threads.html" class="nav-worker_threads">Worker threads</a></li>
881cb0ef41Sopenharmony_ci<li><a href="zlib.html" class="nav-zlib">Zlib</a></li>
891cb0ef41Sopenharmony_ci</ul>
901cb0ef41Sopenharmony_ci<hr class="line">
911cb0ef41Sopenharmony_ci<ul>
921cb0ef41Sopenharmony_ci<li><a href="https://github.com/nodejs/node" class="nav-https-github-com-nodejs-node">Code repository and issue tracker</a></li>
931cb0ef41Sopenharmony_ci</ul>
941cb0ef41Sopenharmony_ci    </div>
951cb0ef41Sopenharmony_ci
961cb0ef41Sopenharmony_ci    <div id="column1" data-id="globals" class="interior">
971cb0ef41Sopenharmony_ci      <header class="header">
981cb0ef41Sopenharmony_ci        <div class="header-container">
991cb0ef41Sopenharmony_ci          <h1>Node.js v18.20.1 documentation</h1>
1001cb0ef41Sopenharmony_ci          <button class="theme-toggle-btn" id="theme-toggle-btn" title="Toggle dark mode/light mode" aria-label="Toggle dark mode/light mode" hidden>
1011cb0ef41Sopenharmony_ci            <svg xmlns="http://www.w3.org/2000/svg" class="icon dark-icon" height="24" width="24">
1021cb0ef41Sopenharmony_ci              <path fill="none" d="M0 0h24v24H0z" />
1031cb0ef41Sopenharmony_ci              <path d="M11.1 12.08c-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.62-.27 1.29-.42 2-.42 1.66 0 3.18.83 4.1 2.15A4.01 4.01 0 0111 18c0 1.52-.87 2.83-2.12 3.51.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-2.36.23-6.98-.97-9.26-5.41z"/>
1041cb0ef41Sopenharmony_ci              <path d="M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2z"/>
1051cb0ef41Sopenharmony_ci            </svg>
1061cb0ef41Sopenharmony_ci            <svg xmlns="http://www.w3.org/2000/svg" class="icon light-icon" height="24" width="24">
1071cb0ef41Sopenharmony_ci              <path d="M0 0h24v24H0z" fill="none" />
1081cb0ef41Sopenharmony_ci              <path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"/>
1091cb0ef41Sopenharmony_ci            </svg>
1101cb0ef41Sopenharmony_ci          </button>
1111cb0ef41Sopenharmony_ci        </div>
1121cb0ef41Sopenharmony_ci        <div id="gtoc">
1131cb0ef41Sopenharmony_ci          <ul>
1141cb0ef41Sopenharmony_ci            <li class="pinned-header">Node.js v18.20.1</li>
1151cb0ef41Sopenharmony_ci            
1161cb0ef41Sopenharmony_ci    <li class="picker-header">
1171cb0ef41Sopenharmony_ci      <a href="#">
1181cb0ef41Sopenharmony_ci        <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
1191cb0ef41Sopenharmony_ci        Table of contents
1201cb0ef41Sopenharmony_ci      </a>
1211cb0ef41Sopenharmony_ci
1221cb0ef41Sopenharmony_ci      <div class="picker"><div class="toc"><ul>
1231cb0ef41Sopenharmony_ci<li><a href="#global-objects">Global objects</a>
1241cb0ef41Sopenharmony_ci<ul>
1251cb0ef41Sopenharmony_ci<li><a href="#class-abortcontroller">Class: <code>AbortController</code></a>
1261cb0ef41Sopenharmony_ci<ul>
1271cb0ef41Sopenharmony_ci<li><a href="#abortcontrollerabortreason"><code>abortController.abort([reason])</code></a></li>
1281cb0ef41Sopenharmony_ci<li><a href="#abortcontrollersignal"><code>abortController.signal</code></a></li>
1291cb0ef41Sopenharmony_ci<li><a href="#class-abortsignal">Class: <code>AbortSignal</code></a>
1301cb0ef41Sopenharmony_ci<ul>
1311cb0ef41Sopenharmony_ci<li><a href="#static-method-abortsignalabortreason">Static method: <code>AbortSignal.abort([reason])</code></a></li>
1321cb0ef41Sopenharmony_ci<li><a href="#static-method-abortsignaltimeoutdelay">Static method: <code>AbortSignal.timeout(delay)</code></a></li>
1331cb0ef41Sopenharmony_ci<li><a href="#static-method-abortsignalanysignals">Static method: <code>AbortSignal.any(signals)</code></a></li>
1341cb0ef41Sopenharmony_ci<li><a href="#event-abort">Event: <code>'abort'</code></a></li>
1351cb0ef41Sopenharmony_ci<li><a href="#abortsignalaborted"><code>abortSignal.aborted</code></a></li>
1361cb0ef41Sopenharmony_ci<li><a href="#abortsignalonabort"><code>abortSignal.onabort</code></a></li>
1371cb0ef41Sopenharmony_ci<li><a href="#abortsignalreason"><code>abortSignal.reason</code></a></li>
1381cb0ef41Sopenharmony_ci<li><a href="#abortsignalthrowifaborted"><code>abortSignal.throwIfAborted()</code></a></li>
1391cb0ef41Sopenharmony_ci</ul>
1401cb0ef41Sopenharmony_ci</li>
1411cb0ef41Sopenharmony_ci</ul>
1421cb0ef41Sopenharmony_ci</li>
1431cb0ef41Sopenharmony_ci<li><a href="#class-blob">Class: <code>Blob</code></a></li>
1441cb0ef41Sopenharmony_ci<li><a href="#class-buffer">Class: <code>Buffer</code></a></li>
1451cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-bytelengthqueuingstrategy">Class: <code>ByteLengthQueuingStrategy</code></a></span></li>
1461cb0ef41Sopenharmony_ci<li><a href="#__dirname"><code>__dirname</code></a></li>
1471cb0ef41Sopenharmony_ci<li><a href="#__filename"><code>__filename</code></a></li>
1481cb0ef41Sopenharmony_ci<li><span class="stability_3"><a href="#atobdata"><code>atob(data)</code></a></span></li>
1491cb0ef41Sopenharmony_ci<li><a href="#broadcastchannel"><code>BroadcastChannel</code></a></li>
1501cb0ef41Sopenharmony_ci<li><span class="stability_3"><a href="#btoadata"><code>btoa(data)</code></a></span></li>
1511cb0ef41Sopenharmony_ci<li><a href="#clearimmediateimmediateobject"><code>clearImmediate(immediateObject)</code></a></li>
1521cb0ef41Sopenharmony_ci<li><a href="#clearintervalintervalobject"><code>clearInterval(intervalObject)</code></a></li>
1531cb0ef41Sopenharmony_ci<li><a href="#cleartimeouttimeoutobject"><code>clearTimeout(timeoutObject)</code></a></li>
1541cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-compressionstream">Class: <code>CompressionStream</code></a></span></li>
1551cb0ef41Sopenharmony_ci<li><a href="#console"><code>console</code></a></li>
1561cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-countqueuingstrategy">Class: <code>CountQueuingStrategy</code></a></span></li>
1571cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#crypto"><code>Crypto</code></a></span></li>
1581cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#crypto_1"><code>crypto</code></a></span></li>
1591cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#cryptokey"><code>CryptoKey</code></a></span></li>
1601cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#customevent"><code>CustomEvent</code></a></span></li>
1611cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-decompressionstream">Class: <code>DecompressionStream</code></a></span></li>
1621cb0ef41Sopenharmony_ci<li><a href="#event"><code>Event</code></a></li>
1631cb0ef41Sopenharmony_ci<li><a href="#eventtarget"><code>EventTarget</code></a></li>
1641cb0ef41Sopenharmony_ci<li><a href="#exports"><code>exports</code></a></li>
1651cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#fetch"><code>fetch</code></a></span></li>
1661cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-formdata">Class <code>FormData</code></a></span></li>
1671cb0ef41Sopenharmony_ci<li><span class="stability_3"><a href="#global"><code>global</code></a></span></li>
1681cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-headers">Class <code>Headers</code></a></span></li>
1691cb0ef41Sopenharmony_ci<li><a href="#messagechannel"><code>MessageChannel</code></a></li>
1701cb0ef41Sopenharmony_ci<li><a href="#messageevent"><code>MessageEvent</code></a></li>
1711cb0ef41Sopenharmony_ci<li><a href="#messageport"><code>MessagePort</code></a></li>
1721cb0ef41Sopenharmony_ci<li><a href="#module"><code>module</code></a></li>
1731cb0ef41Sopenharmony_ci<li><a href="#performance"><code>performance</code></a></li>
1741cb0ef41Sopenharmony_ci<li><a href="#process"><code>process</code></a></li>
1751cb0ef41Sopenharmony_ci<li><a href="#queuemicrotaskcallback"><code>queueMicrotask(callback)</code></a></li>
1761cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablebytestreamcontroller">Class: <code>ReadableByteStreamController</code></a></span></li>
1771cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablestream">Class: <code>ReadableStream</code></a></span></li>
1781cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablestreambyobreader">Class: <code>ReadableStreamBYOBReader</code></a></span></li>
1791cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablestreambyobrequest">Class: <code>ReadableStreamBYOBRequest</code></a></span></li>
1801cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablestreamdefaultcontroller">Class: <code>ReadableStreamDefaultController</code></a></span></li>
1811cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablestreamdefaultreader">Class: <code>ReadableStreamDefaultReader</code></a></span></li>
1821cb0ef41Sopenharmony_ci<li><a href="#require"><code>require()</code></a></li>
1831cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#response"><code>Response</code></a></span></li>
1841cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#request"><code>Request</code></a></span></li>
1851cb0ef41Sopenharmony_ci<li><a href="#setimmediatecallback-args"><code>setImmediate(callback[, ...args])</code></a></li>
1861cb0ef41Sopenharmony_ci<li><a href="#setintervalcallback-delay-args"><code>setInterval(callback, delay[, ...args])</code></a></li>
1871cb0ef41Sopenharmony_ci<li><a href="#settimeoutcallback-delay-args"><code>setTimeout(callback, delay[, ...args])</code></a></li>
1881cb0ef41Sopenharmony_ci<li><a href="#structuredclonevalue-options"><code>structuredClone(value[, options])</code></a></li>
1891cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#subtlecrypto"><code>SubtleCrypto</code></a></span></li>
1901cb0ef41Sopenharmony_ci<li><a href="#domexception"><code>DOMException</code></a></li>
1911cb0ef41Sopenharmony_ci<li><a href="#textdecoder"><code>TextDecoder</code></a></li>
1921cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-textdecoderstream">Class: <code>TextDecoderStream</code></a></span></li>
1931cb0ef41Sopenharmony_ci<li><a href="#textencoder"><code>TextEncoder</code></a></li>
1941cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-textencoderstream">Class: <code>TextEncoderStream</code></a></span></li>
1951cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-transformstream">Class: <code>TransformStream</code></a></span></li>
1961cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-transformstreamdefaultcontroller">Class: <code>TransformStreamDefaultController</code></a></span></li>
1971cb0ef41Sopenharmony_ci<li><a href="#url"><code>URL</code></a></li>
1981cb0ef41Sopenharmony_ci<li><a href="#urlsearchparams"><code>URLSearchParams</code></a></li>
1991cb0ef41Sopenharmony_ci<li><a href="#webassembly"><code>WebAssembly</code></a></li>
2001cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-writablestream">Class: <code>WritableStream</code></a></span></li>
2011cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-writablestreamdefaultcontroller">Class: <code>WritableStreamDefaultController</code></a></span></li>
2021cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-writablestreamdefaultwriter">Class: <code>WritableStreamDefaultWriter</code></a></span></li>
2031cb0ef41Sopenharmony_ci</ul>
2041cb0ef41Sopenharmony_ci</li>
2051cb0ef41Sopenharmony_ci</ul></div></div>
2061cb0ef41Sopenharmony_ci    </li>
2071cb0ef41Sopenharmony_ci  
2081cb0ef41Sopenharmony_ci            
2091cb0ef41Sopenharmony_ci    <li class="picker-header">
2101cb0ef41Sopenharmony_ci      <a href="#">
2111cb0ef41Sopenharmony_ci        <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
2121cb0ef41Sopenharmony_ci        Index
2131cb0ef41Sopenharmony_ci      </a>
2141cb0ef41Sopenharmony_ci
2151cb0ef41Sopenharmony_ci      <div class="picker"><ul>
2161cb0ef41Sopenharmony_ci<li><a href="documentation.html" class="nav-documentation">About this documentation</a></li>
2171cb0ef41Sopenharmony_ci<li><a href="synopsis.html" class="nav-synopsis">Usage and example</a></li>
2181cb0ef41Sopenharmony_ci
2191cb0ef41Sopenharmony_ci      <li>
2201cb0ef41Sopenharmony_ci        <a href="index.html">Index</a>
2211cb0ef41Sopenharmony_ci      </li>
2221cb0ef41Sopenharmony_ci    </ul>
2231cb0ef41Sopenharmony_ci  
2241cb0ef41Sopenharmony_ci<hr class="line">
2251cb0ef41Sopenharmony_ci<ul>
2261cb0ef41Sopenharmony_ci<li><a href="assert.html" class="nav-assert">Assertion testing</a></li>
2271cb0ef41Sopenharmony_ci<li><a href="async_context.html" class="nav-async_context">Asynchronous context tracking</a></li>
2281cb0ef41Sopenharmony_ci<li><a href="async_hooks.html" class="nav-async_hooks">Async hooks</a></li>
2291cb0ef41Sopenharmony_ci<li><a href="buffer.html" class="nav-buffer">Buffer</a></li>
2301cb0ef41Sopenharmony_ci<li><a href="addons.html" class="nav-addons">C++ addons</a></li>
2311cb0ef41Sopenharmony_ci<li><a href="n-api.html" class="nav-n-api">C/C++ addons with Node-API</a></li>
2321cb0ef41Sopenharmony_ci<li><a href="embedding.html" class="nav-embedding">C++ embedder API</a></li>
2331cb0ef41Sopenharmony_ci<li><a href="child_process.html" class="nav-child_process">Child processes</a></li>
2341cb0ef41Sopenharmony_ci<li><a href="cluster.html" class="nav-cluster">Cluster</a></li>
2351cb0ef41Sopenharmony_ci<li><a href="cli.html" class="nav-cli">Command-line options</a></li>
2361cb0ef41Sopenharmony_ci<li><a href="console.html" class="nav-console">Console</a></li>
2371cb0ef41Sopenharmony_ci<li><a href="corepack.html" class="nav-corepack">Corepack</a></li>
2381cb0ef41Sopenharmony_ci<li><a href="crypto.html" class="nav-crypto">Crypto</a></li>
2391cb0ef41Sopenharmony_ci<li><a href="debugger.html" class="nav-debugger">Debugger</a></li>
2401cb0ef41Sopenharmony_ci<li><a href="deprecations.html" class="nav-deprecations">Deprecated APIs</a></li>
2411cb0ef41Sopenharmony_ci<li><a href="diagnostics_channel.html" class="nav-diagnostics_channel">Diagnostics Channel</a></li>
2421cb0ef41Sopenharmony_ci<li><a href="dns.html" class="nav-dns">DNS</a></li>
2431cb0ef41Sopenharmony_ci<li><a href="domain.html" class="nav-domain">Domain</a></li>
2441cb0ef41Sopenharmony_ci<li><a href="errors.html" class="nav-errors">Errors</a></li>
2451cb0ef41Sopenharmony_ci<li><a href="events.html" class="nav-events">Events</a></li>
2461cb0ef41Sopenharmony_ci<li><a href="fs.html" class="nav-fs">File system</a></li>
2471cb0ef41Sopenharmony_ci<li><a href="globals.html" class="nav-globals active">Globals</a></li>
2481cb0ef41Sopenharmony_ci<li><a href="http.html" class="nav-http">HTTP</a></li>
2491cb0ef41Sopenharmony_ci<li><a href="http2.html" class="nav-http2">HTTP/2</a></li>
2501cb0ef41Sopenharmony_ci<li><a href="https.html" class="nav-https">HTTPS</a></li>
2511cb0ef41Sopenharmony_ci<li><a href="inspector.html" class="nav-inspector">Inspector</a></li>
2521cb0ef41Sopenharmony_ci<li><a href="intl.html" class="nav-intl">Internationalization</a></li>
2531cb0ef41Sopenharmony_ci<li><a href="modules.html" class="nav-modules">Modules: CommonJS modules</a></li>
2541cb0ef41Sopenharmony_ci<li><a href="esm.html" class="nav-esm">Modules: ECMAScript modules</a></li>
2551cb0ef41Sopenharmony_ci<li><a href="module.html" class="nav-module">Modules: <code>node:module</code> API</a></li>
2561cb0ef41Sopenharmony_ci<li><a href="packages.html" class="nav-packages">Modules: Packages</a></li>
2571cb0ef41Sopenharmony_ci<li><a href="net.html" class="nav-net">Net</a></li>
2581cb0ef41Sopenharmony_ci<li><a href="os.html" class="nav-os">OS</a></li>
2591cb0ef41Sopenharmony_ci<li><a href="path.html" class="nav-path">Path</a></li>
2601cb0ef41Sopenharmony_ci<li><a href="perf_hooks.html" class="nav-perf_hooks">Performance hooks</a></li>
2611cb0ef41Sopenharmony_ci<li><a href="permissions.html" class="nav-permissions">Permissions</a></li>
2621cb0ef41Sopenharmony_ci<li><a href="process.html" class="nav-process">Process</a></li>
2631cb0ef41Sopenharmony_ci<li><a href="punycode.html" class="nav-punycode">Punycode</a></li>
2641cb0ef41Sopenharmony_ci<li><a href="querystring.html" class="nav-querystring">Query strings</a></li>
2651cb0ef41Sopenharmony_ci<li><a href="readline.html" class="nav-readline">Readline</a></li>
2661cb0ef41Sopenharmony_ci<li><a href="repl.html" class="nav-repl">REPL</a></li>
2671cb0ef41Sopenharmony_ci<li><a href="report.html" class="nav-report">Report</a></li>
2681cb0ef41Sopenharmony_ci<li><a href="single-executable-applications.html" class="nav-single-executable-applications">Single executable applications</a></li>
2691cb0ef41Sopenharmony_ci<li><a href="stream.html" class="nav-stream">Stream</a></li>
2701cb0ef41Sopenharmony_ci<li><a href="string_decoder.html" class="nav-string_decoder">String decoder</a></li>
2711cb0ef41Sopenharmony_ci<li><a href="test.html" class="nav-test">Test runner</a></li>
2721cb0ef41Sopenharmony_ci<li><a href="timers.html" class="nav-timers">Timers</a></li>
2731cb0ef41Sopenharmony_ci<li><a href="tls.html" class="nav-tls">TLS/SSL</a></li>
2741cb0ef41Sopenharmony_ci<li><a href="tracing.html" class="nav-tracing">Trace events</a></li>
2751cb0ef41Sopenharmony_ci<li><a href="tty.html" class="nav-tty">TTY</a></li>
2761cb0ef41Sopenharmony_ci<li><a href="dgram.html" class="nav-dgram">UDP/datagram</a></li>
2771cb0ef41Sopenharmony_ci<li><a href="url.html" class="nav-url">URL</a></li>
2781cb0ef41Sopenharmony_ci<li><a href="util.html" class="nav-util">Utilities</a></li>
2791cb0ef41Sopenharmony_ci<li><a href="v8.html" class="nav-v8">V8</a></li>
2801cb0ef41Sopenharmony_ci<li><a href="vm.html" class="nav-vm">VM</a></li>
2811cb0ef41Sopenharmony_ci<li><a href="wasi.html" class="nav-wasi">WASI</a></li>
2821cb0ef41Sopenharmony_ci<li><a href="webcrypto.html" class="nav-webcrypto">Web Crypto API</a></li>
2831cb0ef41Sopenharmony_ci<li><a href="webstreams.html" class="nav-webstreams">Web Streams API</a></li>
2841cb0ef41Sopenharmony_ci<li><a href="worker_threads.html" class="nav-worker_threads">Worker threads</a></li>
2851cb0ef41Sopenharmony_ci<li><a href="zlib.html" class="nav-zlib">Zlib</a></li>
2861cb0ef41Sopenharmony_ci</ul>
2871cb0ef41Sopenharmony_ci<hr class="line">
2881cb0ef41Sopenharmony_ci<ul>
2891cb0ef41Sopenharmony_ci<li><a href="https://github.com/nodejs/node" class="nav-https-github-com-nodejs-node">Code repository and issue tracker</a></li>
2901cb0ef41Sopenharmony_ci</ul></div>
2911cb0ef41Sopenharmony_ci    </li>
2921cb0ef41Sopenharmony_ci  
2931cb0ef41Sopenharmony_ci            
2941cb0ef41Sopenharmony_ci    <li class="picker-header">
2951cb0ef41Sopenharmony_ci      <a href="#">
2961cb0ef41Sopenharmony_ci        <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
2971cb0ef41Sopenharmony_ci        Other versions
2981cb0ef41Sopenharmony_ci      </a>
2991cb0ef41Sopenharmony_ci      <div class="picker"><ol id="alt-docs"><li><a href="https://nodejs.org/docs/latest-v21.x/api/globals.html">21.x</a></li>
3001cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v20.x/api/globals.html">20.x <b>LTS</b></a></li>
3011cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v19.x/api/globals.html">19.x</a></li>
3021cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v18.x/api/globals.html">18.x <b>LTS</b></a></li>
3031cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v17.x/api/globals.html">17.x</a></li>
3041cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v16.x/api/globals.html">16.x</a></li>
3051cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v15.x/api/globals.html">15.x</a></li>
3061cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v14.x/api/globals.html">14.x</a></li>
3071cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v13.x/api/globals.html">13.x</a></li>
3081cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v12.x/api/globals.html">12.x</a></li>
3091cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v11.x/api/globals.html">11.x</a></li>
3101cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v10.x/api/globals.html">10.x</a></li>
3111cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v9.x/api/globals.html">9.x</a></li>
3121cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v8.x/api/globals.html">8.x</a></li>
3131cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v7.x/api/globals.html">7.x</a></li>
3141cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v6.x/api/globals.html">6.x</a></li>
3151cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v5.x/api/globals.html">5.x</a></li>
3161cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v4.x/api/globals.html">4.x</a></li>
3171cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v0.12.x/api/globals.html">0.12.x</a></li>
3181cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v0.10.x/api/globals.html">0.10.x</a></li></ol></div>
3191cb0ef41Sopenharmony_ci    </li>
3201cb0ef41Sopenharmony_ci  
3211cb0ef41Sopenharmony_ci            <li class="picker-header">
3221cb0ef41Sopenharmony_ci              <a href="#">
3231cb0ef41Sopenharmony_ci                <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
3241cb0ef41Sopenharmony_ci                Options
3251cb0ef41Sopenharmony_ci              </a>
3261cb0ef41Sopenharmony_ci        
3271cb0ef41Sopenharmony_ci              <div class="picker">
3281cb0ef41Sopenharmony_ci                <ul>
3291cb0ef41Sopenharmony_ci                  <li>
3301cb0ef41Sopenharmony_ci                    <a href="all.html">View on single page</a>
3311cb0ef41Sopenharmony_ci                  </li>
3321cb0ef41Sopenharmony_ci                  <li>
3331cb0ef41Sopenharmony_ci                    <a href="globals.json">View as JSON</a>
3341cb0ef41Sopenharmony_ci                  </li>
3351cb0ef41Sopenharmony_ci                  <li class="edit_on_github"><a href="https://github.com/nodejs/node/edit/main/doc/api/globals.md">Edit on GitHub</a></li>    
3361cb0ef41Sopenharmony_ci                </ul>
3371cb0ef41Sopenharmony_ci              </div>
3381cb0ef41Sopenharmony_ci            </li>
3391cb0ef41Sopenharmony_ci          </ul>
3401cb0ef41Sopenharmony_ci        </div>
3411cb0ef41Sopenharmony_ci        <hr>
3421cb0ef41Sopenharmony_ci      </header>
3431cb0ef41Sopenharmony_ci
3441cb0ef41Sopenharmony_ci      <details id="toc" open><summary>Table of contents</summary><ul>
3451cb0ef41Sopenharmony_ci<li><a href="#global-objects">Global objects</a>
3461cb0ef41Sopenharmony_ci<ul>
3471cb0ef41Sopenharmony_ci<li><a href="#class-abortcontroller">Class: <code>AbortController</code></a>
3481cb0ef41Sopenharmony_ci<ul>
3491cb0ef41Sopenharmony_ci<li><a href="#abortcontrollerabortreason"><code>abortController.abort([reason])</code></a></li>
3501cb0ef41Sopenharmony_ci<li><a href="#abortcontrollersignal"><code>abortController.signal</code></a></li>
3511cb0ef41Sopenharmony_ci<li><a href="#class-abortsignal">Class: <code>AbortSignal</code></a>
3521cb0ef41Sopenharmony_ci<ul>
3531cb0ef41Sopenharmony_ci<li><a href="#static-method-abortsignalabortreason">Static method: <code>AbortSignal.abort([reason])</code></a></li>
3541cb0ef41Sopenharmony_ci<li><a href="#static-method-abortsignaltimeoutdelay">Static method: <code>AbortSignal.timeout(delay)</code></a></li>
3551cb0ef41Sopenharmony_ci<li><a href="#static-method-abortsignalanysignals">Static method: <code>AbortSignal.any(signals)</code></a></li>
3561cb0ef41Sopenharmony_ci<li><a href="#event-abort">Event: <code>'abort'</code></a></li>
3571cb0ef41Sopenharmony_ci<li><a href="#abortsignalaborted"><code>abortSignal.aborted</code></a></li>
3581cb0ef41Sopenharmony_ci<li><a href="#abortsignalonabort"><code>abortSignal.onabort</code></a></li>
3591cb0ef41Sopenharmony_ci<li><a href="#abortsignalreason"><code>abortSignal.reason</code></a></li>
3601cb0ef41Sopenharmony_ci<li><a href="#abortsignalthrowifaborted"><code>abortSignal.throwIfAborted()</code></a></li>
3611cb0ef41Sopenharmony_ci</ul>
3621cb0ef41Sopenharmony_ci</li>
3631cb0ef41Sopenharmony_ci</ul>
3641cb0ef41Sopenharmony_ci</li>
3651cb0ef41Sopenharmony_ci<li><a href="#class-blob">Class: <code>Blob</code></a></li>
3661cb0ef41Sopenharmony_ci<li><a href="#class-buffer">Class: <code>Buffer</code></a></li>
3671cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-bytelengthqueuingstrategy">Class: <code>ByteLengthQueuingStrategy</code></a></span></li>
3681cb0ef41Sopenharmony_ci<li><a href="#__dirname"><code>__dirname</code></a></li>
3691cb0ef41Sopenharmony_ci<li><a href="#__filename"><code>__filename</code></a></li>
3701cb0ef41Sopenharmony_ci<li><span class="stability_3"><a href="#atobdata"><code>atob(data)</code></a></span></li>
3711cb0ef41Sopenharmony_ci<li><a href="#broadcastchannel"><code>BroadcastChannel</code></a></li>
3721cb0ef41Sopenharmony_ci<li><span class="stability_3"><a href="#btoadata"><code>btoa(data)</code></a></span></li>
3731cb0ef41Sopenharmony_ci<li><a href="#clearimmediateimmediateobject"><code>clearImmediate(immediateObject)</code></a></li>
3741cb0ef41Sopenharmony_ci<li><a href="#clearintervalintervalobject"><code>clearInterval(intervalObject)</code></a></li>
3751cb0ef41Sopenharmony_ci<li><a href="#cleartimeouttimeoutobject"><code>clearTimeout(timeoutObject)</code></a></li>
3761cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-compressionstream">Class: <code>CompressionStream</code></a></span></li>
3771cb0ef41Sopenharmony_ci<li><a href="#console"><code>console</code></a></li>
3781cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-countqueuingstrategy">Class: <code>CountQueuingStrategy</code></a></span></li>
3791cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#crypto"><code>Crypto</code></a></span></li>
3801cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#crypto_1"><code>crypto</code></a></span></li>
3811cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#cryptokey"><code>CryptoKey</code></a></span></li>
3821cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#customevent"><code>CustomEvent</code></a></span></li>
3831cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-decompressionstream">Class: <code>DecompressionStream</code></a></span></li>
3841cb0ef41Sopenharmony_ci<li><a href="#event"><code>Event</code></a></li>
3851cb0ef41Sopenharmony_ci<li><a href="#eventtarget"><code>EventTarget</code></a></li>
3861cb0ef41Sopenharmony_ci<li><a href="#exports"><code>exports</code></a></li>
3871cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#fetch"><code>fetch</code></a></span></li>
3881cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-formdata">Class <code>FormData</code></a></span></li>
3891cb0ef41Sopenharmony_ci<li><span class="stability_3"><a href="#global"><code>global</code></a></span></li>
3901cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-headers">Class <code>Headers</code></a></span></li>
3911cb0ef41Sopenharmony_ci<li><a href="#messagechannel"><code>MessageChannel</code></a></li>
3921cb0ef41Sopenharmony_ci<li><a href="#messageevent"><code>MessageEvent</code></a></li>
3931cb0ef41Sopenharmony_ci<li><a href="#messageport"><code>MessagePort</code></a></li>
3941cb0ef41Sopenharmony_ci<li><a href="#module"><code>module</code></a></li>
3951cb0ef41Sopenharmony_ci<li><a href="#performance"><code>performance</code></a></li>
3961cb0ef41Sopenharmony_ci<li><a href="#process"><code>process</code></a></li>
3971cb0ef41Sopenharmony_ci<li><a href="#queuemicrotaskcallback"><code>queueMicrotask(callback)</code></a></li>
3981cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablebytestreamcontroller">Class: <code>ReadableByteStreamController</code></a></span></li>
3991cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablestream">Class: <code>ReadableStream</code></a></span></li>
4001cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablestreambyobreader">Class: <code>ReadableStreamBYOBReader</code></a></span></li>
4011cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablestreambyobrequest">Class: <code>ReadableStreamBYOBRequest</code></a></span></li>
4021cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablestreamdefaultcontroller">Class: <code>ReadableStreamDefaultController</code></a></span></li>
4031cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-readablestreamdefaultreader">Class: <code>ReadableStreamDefaultReader</code></a></span></li>
4041cb0ef41Sopenharmony_ci<li><a href="#require"><code>require()</code></a></li>
4051cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#response"><code>Response</code></a></span></li>
4061cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#request"><code>Request</code></a></span></li>
4071cb0ef41Sopenharmony_ci<li><a href="#setimmediatecallback-args"><code>setImmediate(callback[, ...args])</code></a></li>
4081cb0ef41Sopenharmony_ci<li><a href="#setintervalcallback-delay-args"><code>setInterval(callback, delay[, ...args])</code></a></li>
4091cb0ef41Sopenharmony_ci<li><a href="#settimeoutcallback-delay-args"><code>setTimeout(callback, delay[, ...args])</code></a></li>
4101cb0ef41Sopenharmony_ci<li><a href="#structuredclonevalue-options"><code>structuredClone(value[, options])</code></a></li>
4111cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#subtlecrypto"><code>SubtleCrypto</code></a></span></li>
4121cb0ef41Sopenharmony_ci<li><a href="#domexception"><code>DOMException</code></a></li>
4131cb0ef41Sopenharmony_ci<li><a href="#textdecoder"><code>TextDecoder</code></a></li>
4141cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-textdecoderstream">Class: <code>TextDecoderStream</code></a></span></li>
4151cb0ef41Sopenharmony_ci<li><a href="#textencoder"><code>TextEncoder</code></a></li>
4161cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-textencoderstream">Class: <code>TextEncoderStream</code></a></span></li>
4171cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-transformstream">Class: <code>TransformStream</code></a></span></li>
4181cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-transformstreamdefaultcontroller">Class: <code>TransformStreamDefaultController</code></a></span></li>
4191cb0ef41Sopenharmony_ci<li><a href="#url"><code>URL</code></a></li>
4201cb0ef41Sopenharmony_ci<li><a href="#urlsearchparams"><code>URLSearchParams</code></a></li>
4211cb0ef41Sopenharmony_ci<li><a href="#webassembly"><code>WebAssembly</code></a></li>
4221cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-writablestream">Class: <code>WritableStream</code></a></span></li>
4231cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-writablestreamdefaultcontroller">Class: <code>WritableStreamDefaultController</code></a></span></li>
4241cb0ef41Sopenharmony_ci<li><span class="stability_1"><a href="#class-writablestreamdefaultwriter">Class: <code>WritableStreamDefaultWriter</code></a></span></li>
4251cb0ef41Sopenharmony_ci</ul>
4261cb0ef41Sopenharmony_ci</li>
4271cb0ef41Sopenharmony_ci</ul></details>
4281cb0ef41Sopenharmony_ci
4291cb0ef41Sopenharmony_ci      <div id="apicontent">
4301cb0ef41Sopenharmony_ci        <h2>Global objects<span><a class="mark" href="#global-objects" id="global-objects">#</a></span><a aria-hidden="true" class="legacy" id="globals_global_objects"></a></h2>
4311cb0ef41Sopenharmony_ci
4321cb0ef41Sopenharmony_ci
4331cb0ef41Sopenharmony_ci<p>These objects are available in all modules. The following variables may appear
4341cb0ef41Sopenharmony_cito be global but are not. They exist only in the scope of modules, see the
4351cb0ef41Sopenharmony_ci<a href="modules.html">module system documentation</a>:</p>
4361cb0ef41Sopenharmony_ci<ul>
4371cb0ef41Sopenharmony_ci<li><a href="modules.html#__dirname"><code>__dirname</code></a></li>
4381cb0ef41Sopenharmony_ci<li><a href="modules.html#__filename"><code>__filename</code></a></li>
4391cb0ef41Sopenharmony_ci<li><a href="modules.html#exports"><code>exports</code></a></li>
4401cb0ef41Sopenharmony_ci<li><a href="modules.html#module"><code>module</code></a></li>
4411cb0ef41Sopenharmony_ci<li><a href="modules.html#requireid"><code>require()</code></a></li>
4421cb0ef41Sopenharmony_ci</ul>
4431cb0ef41Sopenharmony_ci<p>The objects listed here are specific to Node.js. There are <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects">built-in objects</a>
4441cb0ef41Sopenharmony_cithat are part of the JavaScript language itself, which are also globally
4451cb0ef41Sopenharmony_ciaccessible.</p>
4461cb0ef41Sopenharmony_ci<section><h3>Class: <code>AbortController</code><span><a class="mark" href="#class-abortcontroller" id="class-abortcontroller">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_abortcontroller"></a></h3>
4471cb0ef41Sopenharmony_ci<div class="api_metadata">
4481cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary>
4491cb0ef41Sopenharmony_ci<table>
4501cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr>
4511cb0ef41Sopenharmony_ci<tr><td>v15.4.0</td>
4521cb0ef41Sopenharmony_ci<td><p>No longer experimental.</p></td></tr>
4531cb0ef41Sopenharmony_ci<tr><td>v15.0.0, v14.17.0</td>
4541cb0ef41Sopenharmony_ci<td><p><span>Added in: v15.0.0, v14.17.0</span></p></td></tr>
4551cb0ef41Sopenharmony_ci</tbody></table>
4561cb0ef41Sopenharmony_ci</details>
4571cb0ef41Sopenharmony_ci</div>
4581cb0ef41Sopenharmony_ci
4591cb0ef41Sopenharmony_ci<p>A utility class used to signal cancelation in selected <code>Promise</code>-based APIs.
4601cb0ef41Sopenharmony_ciThe API is based on the Web API <a href="https://developer.mozilla.org/en-US/docs/Web/API/AbortController"><code>AbortController</code></a>.</p>
4611cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> ac = <span class="hljs-keyword">new</span> <span class="hljs-title class_">AbortController</span>();
4621cb0ef41Sopenharmony_ci
4631cb0ef41Sopenharmony_ciac.<span class="hljs-property">signal</span>.<span class="hljs-title function_">addEventListener</span>(<span class="hljs-string">'abort'</span>, <span class="hljs-function">() =></span> <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">'Aborted!'</span>),
4641cb0ef41Sopenharmony_ci                           { <span class="hljs-attr">once</span>: <span class="hljs-literal">true</span> });
4651cb0ef41Sopenharmony_ci
4661cb0ef41Sopenharmony_ciac.<span class="hljs-title function_">abort</span>();
4671cb0ef41Sopenharmony_ci
4681cb0ef41Sopenharmony_ci<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(ac.<span class="hljs-property">signal</span>.<span class="hljs-property">aborted</span>);  <span class="hljs-comment">// Prints true</span></code> <button class="copy-button">copy</button></pre>
4691cb0ef41Sopenharmony_ci<h4><code>abortController.abort([reason])</code><span><a class="mark" href="#abortcontrollerabortreason" id="abortcontrollerabortreason">#</a></span><a aria-hidden="true" class="legacy" id="globals_abortcontroller_abort_reason"></a></h4>
4701cb0ef41Sopenharmony_ci<div class="api_metadata">
4711cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary>
4721cb0ef41Sopenharmony_ci<table>
4731cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr>
4741cb0ef41Sopenharmony_ci<tr><td>v17.2.0, v16.14.0</td>
4751cb0ef41Sopenharmony_ci<td><p>Added the new optional reason argument.</p></td></tr>
4761cb0ef41Sopenharmony_ci<tr><td>v15.0.0, v14.17.0</td>
4771cb0ef41Sopenharmony_ci<td><p><span>Added in: v15.0.0, v14.17.0</span></p></td></tr>
4781cb0ef41Sopenharmony_ci</tbody></table>
4791cb0ef41Sopenharmony_ci</details>
4801cb0ef41Sopenharmony_ci</div>
4811cb0ef41Sopenharmony_ci<ul>
4821cb0ef41Sopenharmony_ci<li><code>reason</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types" class="type">&#x3C;any></a> An optional reason, retrievable on the <code>AbortSignal</code>'s
4831cb0ef41Sopenharmony_ci<code>reason</code> property.</li>
4841cb0ef41Sopenharmony_ci</ul>
4851cb0ef41Sopenharmony_ci<p>Triggers the abort signal, causing the <code>abortController.signal</code> to emit
4861cb0ef41Sopenharmony_cithe <code>'abort'</code> event.</p>
4871cb0ef41Sopenharmony_ci<h4><code>abortController.signal</code><span><a class="mark" href="#abortcontrollersignal" id="abortcontrollersignal">#</a></span><a aria-hidden="true" class="legacy" id="globals_abortcontroller_signal"></a></h4>
4881cb0ef41Sopenharmony_ci<div class="api_metadata">
4891cb0ef41Sopenharmony_ci<span>Added in: v15.0.0, v14.17.0</span>
4901cb0ef41Sopenharmony_ci</div>
4911cb0ef41Sopenharmony_ci<ul>
4921cb0ef41Sopenharmony_ci<li>Type: <a href="globals.html#class-abortsignal" class="type">&#x3C;AbortSignal></a></li>
4931cb0ef41Sopenharmony_ci</ul>
4941cb0ef41Sopenharmony_ci<h4>Class: <code>AbortSignal</code><span><a class="mark" href="#class-abortsignal" id="class-abortsignal">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_abortsignal"></a></h4>
4951cb0ef41Sopenharmony_ci<div class="api_metadata">
4961cb0ef41Sopenharmony_ci<span>Added in: v15.0.0, v14.17.0</span>
4971cb0ef41Sopenharmony_ci</div>
4981cb0ef41Sopenharmony_ci<ul>
4991cb0ef41Sopenharmony_ci<li>Extends: <a href="events.html#class-eventtarget" class="type">&#x3C;EventTarget></a></li>
5001cb0ef41Sopenharmony_ci</ul>
5011cb0ef41Sopenharmony_ci<p>The <code>AbortSignal</code> is used to notify observers when the
5021cb0ef41Sopenharmony_ci<code>abortController.abort()</code> method is called.</p>
5031cb0ef41Sopenharmony_ci<h5>Static method: <code>AbortSignal.abort([reason])</code><span><a class="mark" href="#static-method-abortsignalabortreason" id="static-method-abortsignalabortreason">#</a></span><a aria-hidden="true" class="legacy" id="globals_static_method_abortsignal_abort_reason"></a></h5>
5041cb0ef41Sopenharmony_ci<div class="api_metadata">
5051cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary>
5061cb0ef41Sopenharmony_ci<table>
5071cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr>
5081cb0ef41Sopenharmony_ci<tr><td>v17.2.0, v16.14.0</td>
5091cb0ef41Sopenharmony_ci<td><p>Added the new optional reason argument.</p></td></tr>
5101cb0ef41Sopenharmony_ci<tr><td>v15.12.0, v14.17.0</td>
5111cb0ef41Sopenharmony_ci<td><p><span>Added in: v15.12.0, v14.17.0</span></p></td></tr>
5121cb0ef41Sopenharmony_ci</tbody></table>
5131cb0ef41Sopenharmony_ci</details>
5141cb0ef41Sopenharmony_ci</div>
5151cb0ef41Sopenharmony_ci<ul>
5161cb0ef41Sopenharmony_ci<li><code>reason</code>: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types" class="type">&#x3C;any></a></li>
5171cb0ef41Sopenharmony_ci<li>Returns: <a href="globals.html#class-abortsignal" class="type">&#x3C;AbortSignal></a></li>
5181cb0ef41Sopenharmony_ci</ul>
5191cb0ef41Sopenharmony_ci<p>Returns a new already aborted <code>AbortSignal</code>.</p>
5201cb0ef41Sopenharmony_ci<h5>Static method: <code>AbortSignal.timeout(delay)</code><span><a class="mark" href="#static-method-abortsignaltimeoutdelay" id="static-method-abortsignaltimeoutdelay">#</a></span><a aria-hidden="true" class="legacy" id="globals_static_method_abortsignal_timeout_delay"></a></h5>
5211cb0ef41Sopenharmony_ci<div class="api_metadata">
5221cb0ef41Sopenharmony_ci<span>Added in: v17.3.0, v16.14.0</span>
5231cb0ef41Sopenharmony_ci</div>
5241cb0ef41Sopenharmony_ci<ul>
5251cb0ef41Sopenharmony_ci<li><code>delay</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type">&#x3C;number></a> The number of milliseconds to wait before triggering
5261cb0ef41Sopenharmony_cithe AbortSignal.</li>
5271cb0ef41Sopenharmony_ci</ul>
5281cb0ef41Sopenharmony_ci<p>Returns a new <code>AbortSignal</code> which will be aborted in <code>delay</code> milliseconds.</p>
5291cb0ef41Sopenharmony_ci<h5>Static method: <code>AbortSignal.any(signals)</code><span><a class="mark" href="#static-method-abortsignalanysignals" id="static-method-abortsignalanysignals">#</a></span><a aria-hidden="true" class="legacy" id="globals_static_method_abortsignal_any_signals"></a></h5>
5301cb0ef41Sopenharmony_ci<div class="api_metadata">
5311cb0ef41Sopenharmony_ci<span>Added in: v18.17.0</span>
5321cb0ef41Sopenharmony_ci</div>
5331cb0ef41Sopenharmony_ci<ul>
5341cb0ef41Sopenharmony_ci<li><code>signals</code> <a href="globals.html#class-abortsignal" class="type">&#x3C;AbortSignal[]></a> The <code>AbortSignal</code>s of which to compose a new <code>AbortSignal</code>.</li>
5351cb0ef41Sopenharmony_ci</ul>
5361cb0ef41Sopenharmony_ci<p>Returns a new <code>AbortSignal</code> which will be aborted if any of the provided
5371cb0ef41Sopenharmony_cisignals are aborted. Its <a href="#abortsignalreason"><code>abortSignal.reason</code></a> will be set to whichever
5381cb0ef41Sopenharmony_cione of the <code>signals</code> caused it to be aborted.</p>
5391cb0ef41Sopenharmony_ci<h5>Event: <code>'abort'</code><span><a class="mark" href="#event-abort" id="event-abort">#</a></span><a aria-hidden="true" class="legacy" id="globals_event_abort"></a></h5>
5401cb0ef41Sopenharmony_ci<div class="api_metadata">
5411cb0ef41Sopenharmony_ci<span>Added in: v15.0.0, v14.17.0</span>
5421cb0ef41Sopenharmony_ci</div>
5431cb0ef41Sopenharmony_ci<p>The <code>'abort'</code> event is emitted when the <code>abortController.abort()</code> method
5441cb0ef41Sopenharmony_ciis called. The callback is invoked with a single object argument with a
5451cb0ef41Sopenharmony_cisingle <code>type</code> property set to <code>'abort'</code>:</p>
5461cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> ac = <span class="hljs-keyword">new</span> <span class="hljs-title class_">AbortController</span>();
5471cb0ef41Sopenharmony_ci
5481cb0ef41Sopenharmony_ci<span class="hljs-comment">// Use either the onabort property...</span>
5491cb0ef41Sopenharmony_ciac.<span class="hljs-property">signal</span>.<span class="hljs-property">onabort</span> = <span class="hljs-function">() =></span> <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">'aborted!'</span>);
5501cb0ef41Sopenharmony_ci
5511cb0ef41Sopenharmony_ci<span class="hljs-comment">// Or the EventTarget API...</span>
5521cb0ef41Sopenharmony_ciac.<span class="hljs-property">signal</span>.<span class="hljs-title function_">addEventListener</span>(<span class="hljs-string">'abort'</span>, <span class="hljs-function">(<span class="hljs-params">event</span>) =></span> {
5531cb0ef41Sopenharmony_ci  <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(event.<span class="hljs-property">type</span>);  <span class="hljs-comment">// Prints 'abort'</span>
5541cb0ef41Sopenharmony_ci}, { <span class="hljs-attr">once</span>: <span class="hljs-literal">true</span> });
5551cb0ef41Sopenharmony_ci
5561cb0ef41Sopenharmony_ciac.<span class="hljs-title function_">abort</span>();</code> <button class="copy-button">copy</button></pre>
5571cb0ef41Sopenharmony_ci<p>The <code>AbortController</code> with which the <code>AbortSignal</code> is associated will only
5581cb0ef41Sopenharmony_ciever trigger the <code>'abort'</code> event once. We recommended that code check
5591cb0ef41Sopenharmony_cithat the <code>abortSignal.aborted</code> attribute is <code>false</code> before adding an <code>'abort'</code>
5601cb0ef41Sopenharmony_cievent listener.</p>
5611cb0ef41Sopenharmony_ci<p>Any event listeners attached to the <code>AbortSignal</code> should use the
5621cb0ef41Sopenharmony_ci<code>{ once: true }</code> option (or, if using the <code>EventEmitter</code> APIs to attach a
5631cb0ef41Sopenharmony_cilistener, use the <code>once()</code> method) to ensure that the event listener is
5641cb0ef41Sopenharmony_ciremoved as soon as the <code>'abort'</code> event is handled. Failure to do so may
5651cb0ef41Sopenharmony_ciresult in memory leaks.</p>
5661cb0ef41Sopenharmony_ci<h5><code>abortSignal.aborted</code><span><a class="mark" href="#abortsignalaborted" id="abortsignalaborted">#</a></span><a aria-hidden="true" class="legacy" id="globals_abortsignal_aborted"></a></h5>
5671cb0ef41Sopenharmony_ci<div class="api_metadata">
5681cb0ef41Sopenharmony_ci<span>Added in: v15.0.0, v14.17.0</span>
5691cb0ef41Sopenharmony_ci</div>
5701cb0ef41Sopenharmony_ci<ul>
5711cb0ef41Sopenharmony_ci<li>Type: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type">&#x3C;boolean></a> True after the <code>AbortController</code> has been aborted.</li>
5721cb0ef41Sopenharmony_ci</ul>
5731cb0ef41Sopenharmony_ci<h5><code>abortSignal.onabort</code><span><a class="mark" href="#abortsignalonabort" id="abortsignalonabort">#</a></span><a aria-hidden="true" class="legacy" id="globals_abortsignal_onabort"></a></h5>
5741cb0ef41Sopenharmony_ci<div class="api_metadata">
5751cb0ef41Sopenharmony_ci<span>Added in: v15.0.0, v14.17.0</span>
5761cb0ef41Sopenharmony_ci</div>
5771cb0ef41Sopenharmony_ci<ul>
5781cb0ef41Sopenharmony_ci<li>Type: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&#x3C;Function></a></li>
5791cb0ef41Sopenharmony_ci</ul>
5801cb0ef41Sopenharmony_ci<p>An optional callback function that may be set by user code to be notified
5811cb0ef41Sopenharmony_ciwhen the <code>abortController.abort()</code> function has been called.</p>
5821cb0ef41Sopenharmony_ci<h5><code>abortSignal.reason</code><span><a class="mark" href="#abortsignalreason" id="abortsignalreason">#</a></span><a aria-hidden="true" class="legacy" id="globals_abortsignal_reason"></a></h5>
5831cb0ef41Sopenharmony_ci<div class="api_metadata">
5841cb0ef41Sopenharmony_ci<span>Added in: v17.2.0, v16.14.0</span>
5851cb0ef41Sopenharmony_ci</div>
5861cb0ef41Sopenharmony_ci<ul>
5871cb0ef41Sopenharmony_ci<li>Type: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types" class="type">&#x3C;any></a></li>
5881cb0ef41Sopenharmony_ci</ul>
5891cb0ef41Sopenharmony_ci<p>An optional reason specified when the <code>AbortSignal</code> was triggered.</p>
5901cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> ac = <span class="hljs-keyword">new</span> <span class="hljs-title class_">AbortController</span>();
5911cb0ef41Sopenharmony_ciac.<span class="hljs-title function_">abort</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">Error</span>(<span class="hljs-string">'boom!'</span>));
5921cb0ef41Sopenharmony_ci<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(ac.<span class="hljs-property">signal</span>.<span class="hljs-property">reason</span>);  <span class="hljs-comment">// Error: boom!</span></code> <button class="copy-button">copy</button></pre>
5931cb0ef41Sopenharmony_ci<h5><code>abortSignal.throwIfAborted()</code><span><a class="mark" href="#abortsignalthrowifaborted" id="abortsignalthrowifaborted">#</a></span><a aria-hidden="true" class="legacy" id="globals_abortsignal_throwifaborted"></a></h5>
5941cb0ef41Sopenharmony_ci<div class="api_metadata">
5951cb0ef41Sopenharmony_ci<span>Added in: v17.3.0</span>
5961cb0ef41Sopenharmony_ci</div>
5971cb0ef41Sopenharmony_ci<p>If <code>abortSignal.aborted</code> is <code>true</code>, throws <code>abortSignal.reason</code>.</p>
5981cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>Blob</code><span><a class="mark" href="#class-blob" id="class-blob">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_blob"></a></h3>
5991cb0ef41Sopenharmony_ci<div class="api_metadata">
6001cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
6011cb0ef41Sopenharmony_ci</div>
6021cb0ef41Sopenharmony_ci
6031cb0ef41Sopenharmony_ci<p>See <a href="buffer.html#class-blob" class="type">&#x3C;Blob></a>.</p>
6041cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>Buffer</code><span><a class="mark" href="#class-buffer" id="class-buffer">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_buffer"></a></h3>
6051cb0ef41Sopenharmony_ci<div class="api_metadata">
6061cb0ef41Sopenharmony_ci<span>Added in: v0.1.103</span>
6071cb0ef41Sopenharmony_ci</div>
6081cb0ef41Sopenharmony_ci
6091cb0ef41Sopenharmony_ci<ul>
6101cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&#x3C;Function></a></li>
6111cb0ef41Sopenharmony_ci</ul>
6121cb0ef41Sopenharmony_ci<p>Used to handle binary data. See the <a href="buffer.html">buffer section</a>.</p>
6131cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>ByteLengthQueuingStrategy</code><span><a class="mark" href="#class-bytelengthqueuingstrategy" id="class-bytelengthqueuingstrategy">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_bytelengthqueuingstrategy"></a></h3>
6141cb0ef41Sopenharmony_ci<div class="api_metadata">
6151cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
6161cb0ef41Sopenharmony_ci</div>
6171cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
6181cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-bytelengthqueuingstrategy"><code>ByteLengthQueuingStrategy</code></a>.</p>
6191cb0ef41Sopenharmony_ci</section><section><h3><code>__dirname</code><span><a class="mark" href="#__dirname" id="__dirname">#</a></span><a aria-hidden="true" class="legacy" id="globals_dirname"></a></h3>
6201cb0ef41Sopenharmony_ci<p>This variable may appear to be global but is not. See <a href="modules.html#__dirname"><code>__dirname</code></a>.</p>
6211cb0ef41Sopenharmony_ci</section><section><h3><code>__filename</code><span><a class="mark" href="#__filename" id="__filename">#</a></span><a aria-hidden="true" class="legacy" id="globals_filename"></a></h3>
6221cb0ef41Sopenharmony_ci<p>This variable may appear to be global but is not. See <a href="modules.html#__filename"><code>__filename</code></a>.</p>
6231cb0ef41Sopenharmony_ci</section><section><h3><code>atob(data)</code><span><a class="mark" href="#atobdata" id="atobdata">#</a></span><a aria-hidden="true" class="legacy" id="globals_atob_data"></a></h3>
6241cb0ef41Sopenharmony_ci<div class="api_metadata">
6251cb0ef41Sopenharmony_ci<span>Added in: v16.0.0</span>
6261cb0ef41Sopenharmony_ci</div>
6271cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_3"><a href="documentation.html#stability-index">Stability: 3</a> - Legacy. Use <code>Buffer.from(data, 'base64')</code> instead.</div><p></p>
6281cb0ef41Sopenharmony_ci<p>Global alias for <a href="buffer.html#bufferatobdata"><code>buffer.atob()</code></a>.</p>
6291cb0ef41Sopenharmony_ci</section><section><h3><code>BroadcastChannel</code><span><a class="mark" href="#broadcastchannel" id="broadcastchannel">#</a></span><a aria-hidden="true" class="legacy" id="globals_broadcastchannel"></a></h3>
6301cb0ef41Sopenharmony_ci<div class="api_metadata">
6311cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
6321cb0ef41Sopenharmony_ci</div>
6331cb0ef41Sopenharmony_ci<p>See <a href="worker_threads.html#class-broadcastchannel-extends-eventtarget" class="type">&#x3C;BroadcastChannel></a>.</p>
6341cb0ef41Sopenharmony_ci</section><section><h3><code>btoa(data)</code><span><a class="mark" href="#btoadata" id="btoadata">#</a></span><a aria-hidden="true" class="legacy" id="globals_btoa_data"></a></h3>
6351cb0ef41Sopenharmony_ci<div class="api_metadata">
6361cb0ef41Sopenharmony_ci<span>Added in: v16.0.0</span>
6371cb0ef41Sopenharmony_ci</div>
6381cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_3"><a href="documentation.html#stability-index">Stability: 3</a> - Legacy. Use <code>buf.toString('base64')</code> instead.</div><p></p>
6391cb0ef41Sopenharmony_ci<p>Global alias for <a href="buffer.html#bufferbtoadata"><code>buffer.btoa()</code></a>.</p>
6401cb0ef41Sopenharmony_ci</section><section><h3><code>clearImmediate(immediateObject)</code><span><a class="mark" href="#clearimmediateimmediateobject" id="clearimmediateimmediateobject">#</a></span><a aria-hidden="true" class="legacy" id="globals_clearimmediate_immediateobject"></a></h3>
6411cb0ef41Sopenharmony_ci<div class="api_metadata">
6421cb0ef41Sopenharmony_ci<span>Added in: v0.9.1</span>
6431cb0ef41Sopenharmony_ci</div>
6441cb0ef41Sopenharmony_ci
6451cb0ef41Sopenharmony_ci<p><a href="timers.html#clearimmediateimmediate"><code>clearImmediate</code></a> is described in the <a href="timers.html">timers</a> section.</p>
6461cb0ef41Sopenharmony_ci</section><section><h3><code>clearInterval(intervalObject)</code><span><a class="mark" href="#clearintervalintervalobject" id="clearintervalintervalobject">#</a></span><a aria-hidden="true" class="legacy" id="globals_clearinterval_intervalobject"></a></h3>
6471cb0ef41Sopenharmony_ci<div class="api_metadata">
6481cb0ef41Sopenharmony_ci<span>Added in: v0.0.1</span>
6491cb0ef41Sopenharmony_ci</div>
6501cb0ef41Sopenharmony_ci
6511cb0ef41Sopenharmony_ci<p><a href="timers.html#clearintervaltimeout"><code>clearInterval</code></a> is described in the <a href="timers.html">timers</a> section.</p>
6521cb0ef41Sopenharmony_ci</section><section><h3><code>clearTimeout(timeoutObject)</code><span><a class="mark" href="#cleartimeouttimeoutobject" id="cleartimeouttimeoutobject">#</a></span><a aria-hidden="true" class="legacy" id="globals_cleartimeout_timeoutobject"></a></h3>
6531cb0ef41Sopenharmony_ci<div class="api_metadata">
6541cb0ef41Sopenharmony_ci<span>Added in: v0.0.1</span>
6551cb0ef41Sopenharmony_ci</div>
6561cb0ef41Sopenharmony_ci
6571cb0ef41Sopenharmony_ci<p><a href="timers.html#cleartimeouttimeout"><code>clearTimeout</code></a> is described in the <a href="timers.html">timers</a> section.</p>
6581cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>CompressionStream</code><span><a class="mark" href="#class-compressionstream" id="class-compressionstream">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_compressionstream"></a></h3>
6591cb0ef41Sopenharmony_ci<div class="api_metadata">
6601cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
6611cb0ef41Sopenharmony_ci</div>
6621cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
6631cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-compressionstream"><code>CompressionStream</code></a>.</p>
6641cb0ef41Sopenharmony_ci</section><section><h3><code>console</code><span><a class="mark" href="#console" id="console">#</a></span><a aria-hidden="true" class="legacy" id="globals_console"></a></h3>
6651cb0ef41Sopenharmony_ci<div class="api_metadata">
6661cb0ef41Sopenharmony_ci<span>Added in: v0.1.100</span>
6671cb0ef41Sopenharmony_ci</div>
6681cb0ef41Sopenharmony_ci
6691cb0ef41Sopenharmony_ci<ul>
6701cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&#x3C;Object></a></li>
6711cb0ef41Sopenharmony_ci</ul>
6721cb0ef41Sopenharmony_ci<p>Used to print to stdout and stderr. See the <a href="console.html"><code>console</code></a> section.</p>
6731cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>CountQueuingStrategy</code><span><a class="mark" href="#class-countqueuingstrategy" id="class-countqueuingstrategy">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_countqueuingstrategy"></a></h3>
6741cb0ef41Sopenharmony_ci<div class="api_metadata">
6751cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
6761cb0ef41Sopenharmony_ci</div>
6771cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
6781cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-countqueuingstrategy"><code>CountQueuingStrategy</code></a>.</p>
6791cb0ef41Sopenharmony_ci</section><section><h3><code>Crypto</code><span><a class="mark" href="#crypto" id="crypto">#</a></span><a aria-hidden="true" class="legacy" id="globals_crypto"></a></h3>
6801cb0ef41Sopenharmony_ci<div class="api_metadata">
6811cb0ef41Sopenharmony_ci<span>Added in: v17.6.0</span>
6821cb0ef41Sopenharmony_ci</div>
6831cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental. Enable this API with the
6841cb0ef41Sopenharmony_ci<a href="cli.html#--experimental-global-webcrypto"><code>--experimental-global-webcrypto</code></a> CLI flag.</div><p></p>
6851cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webcrypto.html#class-crypto" class="type">&#x3C;Crypto></a>. This global is available
6861cb0ef41Sopenharmony_cionly if the Node.js binary was compiled with including support for the
6871cb0ef41Sopenharmony_ci<code>node:crypto</code> module.</p>
6881cb0ef41Sopenharmony_ci</section><section><h3><code>crypto</code><span><a class="mark" href="#crypto_1" id="crypto_1">#</a></span><a aria-hidden="true" class="legacy" id="globals_crypto_1"></a></h3>
6891cb0ef41Sopenharmony_ci<div class="api_metadata">
6901cb0ef41Sopenharmony_ci<span>Added in: v17.6.0</span>
6911cb0ef41Sopenharmony_ci</div>
6921cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental. Enable this API with the
6931cb0ef41Sopenharmony_ci<a href="cli.html#--experimental-global-webcrypto"><code>--experimental-global-webcrypto</code></a> CLI flag.</div><p></p>
6941cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of the <a href="webcrypto.html">Web Crypto API</a>.</p>
6951cb0ef41Sopenharmony_ci</section><section><h3><code>CryptoKey</code><span><a class="mark" href="#cryptokey" id="cryptokey">#</a></span><a aria-hidden="true" class="legacy" id="globals_cryptokey"></a></h3>
6961cb0ef41Sopenharmony_ci<div class="api_metadata">
6971cb0ef41Sopenharmony_ci<span>Added in: v17.6.0</span>
6981cb0ef41Sopenharmony_ci</div>
6991cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental. Enable this API with the
7001cb0ef41Sopenharmony_ci<a href="cli.html#--experimental-global-webcrypto"><code>--experimental-global-webcrypto</code></a> CLI flag.</div><p></p>
7011cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webcrypto.html#class-cryptokey" class="type">&#x3C;CryptoKey></a>. This global is available
7021cb0ef41Sopenharmony_cionly if the Node.js binary was compiled with including support for the
7031cb0ef41Sopenharmony_ci<code>node:crypto</code> module.</p>
7041cb0ef41Sopenharmony_ci</section><section><h3><code>CustomEvent</code><span><a class="mark" href="#customevent" id="customevent">#</a></span><a aria-hidden="true" class="legacy" id="globals_customevent"></a></h3>
7051cb0ef41Sopenharmony_ci<div class="api_metadata">
7061cb0ef41Sopenharmony_ci<span>Added in: v18.7.0</span>
7071cb0ef41Sopenharmony_ci</div>
7081cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental. Enable this API with the
7091cb0ef41Sopenharmony_ci<a href="cli.html#--experimental-global-customevent"><code>--experimental-global-customevent</code></a> CLI flag.</div><p></p>
7101cb0ef41Sopenharmony_ci
7111cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of the <a href="https://dom.spec.whatwg.org/#customevent"><code>CustomEvent</code> Web API</a>.</p>
7121cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>DecompressionStream</code><span><a class="mark" href="#class-decompressionstream" id="class-decompressionstream">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_decompressionstream"></a></h3>
7131cb0ef41Sopenharmony_ci<div class="api_metadata">
7141cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
7151cb0ef41Sopenharmony_ci</div>
7161cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
7171cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-decompressionstream"><code>DecompressionStream</code></a>.</p>
7181cb0ef41Sopenharmony_ci</section><section><h3><code>Event</code><span><a class="mark" href="#event" id="event">#</a></span><a aria-hidden="true" class="legacy" id="globals_event"></a></h3>
7191cb0ef41Sopenharmony_ci<div class="api_metadata">
7201cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary>
7211cb0ef41Sopenharmony_ci<table>
7221cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr>
7231cb0ef41Sopenharmony_ci<tr><td>v15.4.0</td>
7241cb0ef41Sopenharmony_ci<td><p>No longer experimental.</p></td></tr>
7251cb0ef41Sopenharmony_ci<tr><td>v15.0.0</td>
7261cb0ef41Sopenharmony_ci<td><p><span>Added in: v15.0.0</span></p></td></tr>
7271cb0ef41Sopenharmony_ci</tbody></table>
7281cb0ef41Sopenharmony_ci</details>
7291cb0ef41Sopenharmony_ci</div>
7301cb0ef41Sopenharmony_ci
7311cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of the <code>Event</code> class. See
7321cb0ef41Sopenharmony_ci<a href="events.html#eventtarget-and-event-api"><code>EventTarget</code> and <code>Event</code> API</a> for more details.</p>
7331cb0ef41Sopenharmony_ci</section><section><h3><code>EventTarget</code><span><a class="mark" href="#eventtarget" id="eventtarget">#</a></span><a aria-hidden="true" class="legacy" id="globals_eventtarget"></a></h3>
7341cb0ef41Sopenharmony_ci<div class="api_metadata">
7351cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary>
7361cb0ef41Sopenharmony_ci<table>
7371cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr>
7381cb0ef41Sopenharmony_ci<tr><td>v15.4.0</td>
7391cb0ef41Sopenharmony_ci<td><p>No longer experimental.</p></td></tr>
7401cb0ef41Sopenharmony_ci<tr><td>v15.0.0</td>
7411cb0ef41Sopenharmony_ci<td><p><span>Added in: v15.0.0</span></p></td></tr>
7421cb0ef41Sopenharmony_ci</tbody></table>
7431cb0ef41Sopenharmony_ci</details>
7441cb0ef41Sopenharmony_ci</div>
7451cb0ef41Sopenharmony_ci
7461cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of the <code>EventTarget</code> class. See
7471cb0ef41Sopenharmony_ci<a href="events.html#eventtarget-and-event-api"><code>EventTarget</code> and <code>Event</code> API</a> for more details.</p>
7481cb0ef41Sopenharmony_ci</section><section><h3><code>exports</code><span><a class="mark" href="#exports" id="exports">#</a></span><a aria-hidden="true" class="legacy" id="globals_exports"></a></h3>
7491cb0ef41Sopenharmony_ci<p>This variable may appear to be global but is not. See <a href="modules.html#exports"><code>exports</code></a>.</p>
7501cb0ef41Sopenharmony_ci</section><section><h3><code>fetch</code><span><a class="mark" href="#fetch" id="fetch">#</a></span><a aria-hidden="true" class="legacy" id="globals_fetch"></a></h3>
7511cb0ef41Sopenharmony_ci<div class="api_metadata">
7521cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary>
7531cb0ef41Sopenharmony_ci<table>
7541cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr>
7551cb0ef41Sopenharmony_ci<tr><td>v18.0.0</td>
7561cb0ef41Sopenharmony_ci<td><p>No longer behind <code>--experimental-fetch</code> CLI flag.</p></td></tr>
7571cb0ef41Sopenharmony_ci<tr><td>v17.5.0</td>
7581cb0ef41Sopenharmony_ci<td><p><span>Added in: v17.5.0</span></p></td></tr>
7591cb0ef41Sopenharmony_ci</tbody></table>
7601cb0ef41Sopenharmony_ci</details>
7611cb0ef41Sopenharmony_ci</div>
7621cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental. Disable this API with the <a href="cli.html#--no-experimental-fetch"><code>--no-experimental-fetch</code></a>
7631cb0ef41Sopenharmony_ciCLI flag.</div><p></p>
7641cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of the <a href="https://developer.mozilla.org/en-US/docs/Web/API/fetch"><code>fetch()</code></a> function.</p>
7651cb0ef41Sopenharmony_ci</section><section><h3>Class <code>FormData</code><span><a class="mark" href="#class-formdata" id="class-formdata">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_formdata"></a></h3>
7661cb0ef41Sopenharmony_ci<div class="api_metadata">
7671cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary>
7681cb0ef41Sopenharmony_ci<table>
7691cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr>
7701cb0ef41Sopenharmony_ci<tr><td>v18.0.0</td>
7711cb0ef41Sopenharmony_ci<td><p>No longer behind <code>--experimental-fetch</code> CLI flag.</p></td></tr>
7721cb0ef41Sopenharmony_ci<tr><td>v17.6.0</td>
7731cb0ef41Sopenharmony_ci<td><p><span>Added in: v17.6.0</span></p></td></tr>
7741cb0ef41Sopenharmony_ci</tbody></table>
7751cb0ef41Sopenharmony_ci</details>
7761cb0ef41Sopenharmony_ci</div>
7771cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental. Disable this API with the <a href="cli.html#--no-experimental-fetch"><code>--no-experimental-fetch</code></a>
7781cb0ef41Sopenharmony_ciCLI flag.</div><p></p>
7791cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="https://developer.mozilla.org/en-US/docs/Web/API/FormData" class="type">&#x3C;FormData></a>.</p>
7801cb0ef41Sopenharmony_ci</section><section><h3><code>global</code><span><a class="mark" href="#global" id="global">#</a></span><a aria-hidden="true" class="legacy" id="globals_global"></a></h3>
7811cb0ef41Sopenharmony_ci<div class="api_metadata">
7821cb0ef41Sopenharmony_ci<span>Added in: v0.1.27</span>
7831cb0ef41Sopenharmony_ci</div>
7841cb0ef41Sopenharmony_ci
7851cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_3"><a href="documentation.html#stability-index">Stability: 3</a> - Legacy. Use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis"><code>globalThis</code></a> instead.</div><p></p>
7861cb0ef41Sopenharmony_ci<ul>
7871cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&#x3C;Object></a> The global namespace object.</li>
7881cb0ef41Sopenharmony_ci</ul>
7891cb0ef41Sopenharmony_ci<p>In browsers, the top-level scope has traditionally been the global scope. This
7901cb0ef41Sopenharmony_cimeans that <code>var something</code> will define a new global variable, except within
7911cb0ef41Sopenharmony_ciECMAScript modules. In Node.js, this is different. The top-level scope is not
7921cb0ef41Sopenharmony_cithe global scope; <code>var something</code> inside a Node.js module will be local to that
7931cb0ef41Sopenharmony_cimodule, regardless of whether it is a <a href="modules.html">CommonJS module</a> or an
7941cb0ef41Sopenharmony_ci<a href="esm.html">ECMAScript module</a>.</p>
7951cb0ef41Sopenharmony_ci</section><section><h3>Class <code>Headers</code><span><a class="mark" href="#class-headers" id="class-headers">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_headers"></a></h3>
7961cb0ef41Sopenharmony_ci<div class="api_metadata">
7971cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary>
7981cb0ef41Sopenharmony_ci<table>
7991cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr>
8001cb0ef41Sopenharmony_ci<tr><td>v18.0.0</td>
8011cb0ef41Sopenharmony_ci<td><p>No longer behind <code>--experimental-fetch</code> CLI flag.</p></td></tr>
8021cb0ef41Sopenharmony_ci<tr><td>v17.5.0</td>
8031cb0ef41Sopenharmony_ci<td><p><span>Added in: v17.5.0</span></p></td></tr>
8041cb0ef41Sopenharmony_ci</tbody></table>
8051cb0ef41Sopenharmony_ci</details>
8061cb0ef41Sopenharmony_ci</div>
8071cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental. Disable this API with the <a href="cli.html#--no-experimental-fetch"><code>--no-experimental-fetch</code></a>
8081cb0ef41Sopenharmony_ciCLI flag.</div><p></p>
8091cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="https://developer.mozilla.org/en-US/docs/Web/API/Headers" class="type">&#x3C;Headers></a>.</p>
8101cb0ef41Sopenharmony_ci</section><section><h3><code>MessageChannel</code><span><a class="mark" href="#messagechannel" id="messagechannel">#</a></span><a aria-hidden="true" class="legacy" id="globals_messagechannel"></a></h3>
8111cb0ef41Sopenharmony_ci<div class="api_metadata">
8121cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span>
8131cb0ef41Sopenharmony_ci</div>
8141cb0ef41Sopenharmony_ci
8151cb0ef41Sopenharmony_ci<p>The <code>MessageChannel</code> class. See <a href="worker_threads.html#class-messagechannel"><code>MessageChannel</code></a> for more details.</p>
8161cb0ef41Sopenharmony_ci</section><section><h3><code>MessageEvent</code><span><a class="mark" href="#messageevent" id="messageevent">#</a></span><a aria-hidden="true" class="legacy" id="globals_messageevent"></a></h3>
8171cb0ef41Sopenharmony_ci<div class="api_metadata">
8181cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span>
8191cb0ef41Sopenharmony_ci</div>
8201cb0ef41Sopenharmony_ci
8211cb0ef41Sopenharmony_ci<p>The <code>MessageEvent</code> class. See <a href="https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/MessageEvent"><code>MessageEvent</code></a> for more details.</p>
8221cb0ef41Sopenharmony_ci</section><section><h3><code>MessagePort</code><span><a class="mark" href="#messageport" id="messageport">#</a></span><a aria-hidden="true" class="legacy" id="globals_messageport"></a></h3>
8231cb0ef41Sopenharmony_ci<div class="api_metadata">
8241cb0ef41Sopenharmony_ci<span>Added in: v15.0.0</span>
8251cb0ef41Sopenharmony_ci</div>
8261cb0ef41Sopenharmony_ci
8271cb0ef41Sopenharmony_ci<p>The <code>MessagePort</code> class. See <a href="worker_threads.html#class-messageport"><code>MessagePort</code></a> for more details.</p>
8281cb0ef41Sopenharmony_ci</section><section><h3><code>module</code><span><a class="mark" href="#module" id="module">#</a></span><a aria-hidden="true" class="legacy" id="globals_module"></a></h3>
8291cb0ef41Sopenharmony_ci<p>This variable may appear to be global but is not. See <a href="modules.html#module"><code>module</code></a>.</p>
8301cb0ef41Sopenharmony_ci</section><section><h3><code>performance</code><span><a class="mark" href="#performance" id="performance">#</a></span><a aria-hidden="true" class="legacy" id="globals_performance"></a></h3>
8311cb0ef41Sopenharmony_ci<div class="api_metadata">
8321cb0ef41Sopenharmony_ci<span>Added in: v16.0.0</span>
8331cb0ef41Sopenharmony_ci</div>
8341cb0ef41Sopenharmony_ci<p>The <a href="perf_hooks.html#perf_hooksperformance"><code>perf_hooks.performance</code></a> object.</p>
8351cb0ef41Sopenharmony_ci</section><section><h3><code>process</code><span><a class="mark" href="#process" id="process">#</a></span><a aria-hidden="true" class="legacy" id="globals_process"></a></h3>
8361cb0ef41Sopenharmony_ci<div class="api_metadata">
8371cb0ef41Sopenharmony_ci<span>Added in: v0.1.7</span>
8381cb0ef41Sopenharmony_ci</div>
8391cb0ef41Sopenharmony_ci
8401cb0ef41Sopenharmony_ci<ul>
8411cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&#x3C;Object></a></li>
8421cb0ef41Sopenharmony_ci</ul>
8431cb0ef41Sopenharmony_ci<p>The process object. See the <a href="process.html#process"><code>process</code> object</a> section.</p>
8441cb0ef41Sopenharmony_ci</section><section><h3><code>queueMicrotask(callback)</code><span><a class="mark" href="#queuemicrotaskcallback" id="queuemicrotaskcallback">#</a></span><a aria-hidden="true" class="legacy" id="globals_queuemicrotask_callback"></a></h3>
8451cb0ef41Sopenharmony_ci<div class="api_metadata">
8461cb0ef41Sopenharmony_ci<span>Added in: v11.0.0</span>
8471cb0ef41Sopenharmony_ci</div>
8481cb0ef41Sopenharmony_ci
8491cb0ef41Sopenharmony_ci<ul>
8501cb0ef41Sopenharmony_ci<li><code>callback</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" class="type">&#x3C;Function></a> Function to be queued.</li>
8511cb0ef41Sopenharmony_ci</ul>
8521cb0ef41Sopenharmony_ci<p>The <code>queueMicrotask()</code> method queues a microtask to invoke <code>callback</code>. If
8531cb0ef41Sopenharmony_ci<code>callback</code> throws an exception, the <a href="process.html#process"><code>process</code> object</a> <code>'uncaughtException'</code>
8541cb0ef41Sopenharmony_cievent will be emitted.</p>
8551cb0ef41Sopenharmony_ci<p>The microtask queue is managed by V8 and may be used in a similar manner to
8561cb0ef41Sopenharmony_cithe <a href="process.html#processnexttickcallback-args"><code>process.nextTick()</code></a> queue, which is managed by Node.js. The
8571cb0ef41Sopenharmony_ci<code>process.nextTick()</code> queue is always processed before the microtask queue
8581cb0ef41Sopenharmony_ciwithin each turn of the Node.js event loop.</p>
8591cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-comment">// Here, `queueMicrotask()` is used to ensure the 'load' event is always</span>
8601cb0ef41Sopenharmony_ci<span class="hljs-comment">// emitted asynchronously, and therefore consistently. Using</span>
8611cb0ef41Sopenharmony_ci<span class="hljs-comment">// `process.nextTick()` here would result in the 'load' event always emitting</span>
8621cb0ef41Sopenharmony_ci<span class="hljs-comment">// before any other promise jobs.</span>
8631cb0ef41Sopenharmony_ci
8641cb0ef41Sopenharmony_ci<span class="hljs-title class_">DataHandler</span>.<span class="hljs-property"><span class="hljs-keyword">prototype</span></span>.<span class="hljs-property">load</span> = <span class="hljs-keyword">async</span> <span class="hljs-keyword">function</span> <span class="hljs-title function_">load</span>(<span class="hljs-params">key</span>) {
8651cb0ef41Sopenharmony_ci  <span class="hljs-keyword">const</span> hit = <span class="hljs-variable language_">this</span>.<span class="hljs-property">_cache</span>.<span class="hljs-title function_">get</span>(key);
8661cb0ef41Sopenharmony_ci  <span class="hljs-keyword">if</span> (hit !== <span class="hljs-literal">undefined</span>) {
8671cb0ef41Sopenharmony_ci    <span class="hljs-title function_">queueMicrotask</span>(<span class="hljs-function">() =></span> {
8681cb0ef41Sopenharmony_ci      <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">emit</span>(<span class="hljs-string">'load'</span>, hit);
8691cb0ef41Sopenharmony_ci    });
8701cb0ef41Sopenharmony_ci    <span class="hljs-keyword">return</span>;
8711cb0ef41Sopenharmony_ci  }
8721cb0ef41Sopenharmony_ci
8731cb0ef41Sopenharmony_ci  <span class="hljs-keyword">const</span> data = <span class="hljs-keyword">await</span> <span class="hljs-title function_">fetchData</span>(key);
8741cb0ef41Sopenharmony_ci  <span class="hljs-variable language_">this</span>.<span class="hljs-property">_cache</span>.<span class="hljs-title function_">set</span>(key, data);
8751cb0ef41Sopenharmony_ci  <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">emit</span>(<span class="hljs-string">'load'</span>, data);
8761cb0ef41Sopenharmony_ci};</code> <button class="copy-button">copy</button></pre>
8771cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>ReadableByteStreamController</code><span><a class="mark" href="#class-readablebytestreamcontroller" id="class-readablebytestreamcontroller">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_readablebytestreamcontroller"></a></h3>
8781cb0ef41Sopenharmony_ci<div class="api_metadata">
8791cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
8801cb0ef41Sopenharmony_ci</div>
8811cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
8821cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-readablebytestreamcontroller"><code>ReadableByteStreamController</code></a>.</p>
8831cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>ReadableStream</code><span><a class="mark" href="#class-readablestream" id="class-readablestream">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_readablestream"></a></h3>
8841cb0ef41Sopenharmony_ci<div class="api_metadata">
8851cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
8861cb0ef41Sopenharmony_ci</div>
8871cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
8881cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-readablestream"><code>ReadableStream</code></a>.</p>
8891cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>ReadableStreamBYOBReader</code><span><a class="mark" href="#class-readablestreambyobreader" id="class-readablestreambyobreader">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_readablestreambyobreader"></a></h3>
8901cb0ef41Sopenharmony_ci<div class="api_metadata">
8911cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
8921cb0ef41Sopenharmony_ci</div>
8931cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
8941cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-readablestreambyobreader"><code>ReadableStreamBYOBReader</code></a>.</p>
8951cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>ReadableStreamBYOBRequest</code><span><a class="mark" href="#class-readablestreambyobrequest" id="class-readablestreambyobrequest">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_readablestreambyobrequest"></a></h3>
8961cb0ef41Sopenharmony_ci<div class="api_metadata">
8971cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
8981cb0ef41Sopenharmony_ci</div>
8991cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
9001cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-readablestreambyobrequest"><code>ReadableStreamBYOBRequest</code></a>.</p>
9011cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>ReadableStreamDefaultController</code><span><a class="mark" href="#class-readablestreamdefaultcontroller" id="class-readablestreamdefaultcontroller">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_readablestreamdefaultcontroller"></a></h3>
9021cb0ef41Sopenharmony_ci<div class="api_metadata">
9031cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
9041cb0ef41Sopenharmony_ci</div>
9051cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
9061cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-readablestreamdefaultcontroller"><code>ReadableStreamDefaultController</code></a>.</p>
9071cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>ReadableStreamDefaultReader</code><span><a class="mark" href="#class-readablestreamdefaultreader" id="class-readablestreamdefaultreader">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_readablestreamdefaultreader"></a></h3>
9081cb0ef41Sopenharmony_ci<div class="api_metadata">
9091cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
9101cb0ef41Sopenharmony_ci</div>
9111cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
9121cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-readablestreamdefaultreader"><code>ReadableStreamDefaultReader</code></a>.</p>
9131cb0ef41Sopenharmony_ci</section><section><h3><code>require()</code><span><a class="mark" href="#require" id="require">#</a></span><a aria-hidden="true" class="legacy" id="globals_require"></a></h3>
9141cb0ef41Sopenharmony_ci<p>This variable may appear to be global but is not. See <a href="modules.html#requireid"><code>require()</code></a>.</p>
9151cb0ef41Sopenharmony_ci</section><section><h3><code>Response</code><span><a class="mark" href="#response" id="response">#</a></span><a aria-hidden="true" class="legacy" id="globals_response"></a></h3>
9161cb0ef41Sopenharmony_ci<div class="api_metadata">
9171cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary>
9181cb0ef41Sopenharmony_ci<table>
9191cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr>
9201cb0ef41Sopenharmony_ci<tr><td>v18.0.0</td>
9211cb0ef41Sopenharmony_ci<td><p>No longer behind <code>--experimental-fetch</code> CLI flag.</p></td></tr>
9221cb0ef41Sopenharmony_ci<tr><td>v17.5.0</td>
9231cb0ef41Sopenharmony_ci<td><p><span>Added in: v17.5.0</span></p></td></tr>
9241cb0ef41Sopenharmony_ci</tbody></table>
9251cb0ef41Sopenharmony_ci</details>
9261cb0ef41Sopenharmony_ci</div>
9271cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental. Disable this API with the <a href="cli.html#--no-experimental-fetch"><code>--no-experimental-fetch</code></a>
9281cb0ef41Sopenharmony_ciCLI flag.</div><p></p>
9291cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="https://developer.mozilla.org/en-US/docs/Web/API/Response" class="type">&#x3C;Response></a>.</p>
9301cb0ef41Sopenharmony_ci</section><section><h3><code>Request</code><span><a class="mark" href="#request" id="request">#</a></span><a aria-hidden="true" class="legacy" id="globals_request"></a></h3>
9311cb0ef41Sopenharmony_ci<div class="api_metadata">
9321cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary>
9331cb0ef41Sopenharmony_ci<table>
9341cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr>
9351cb0ef41Sopenharmony_ci<tr><td>v18.0.0</td>
9361cb0ef41Sopenharmony_ci<td><p>No longer behind <code>--experimental-fetch</code> CLI flag.</p></td></tr>
9371cb0ef41Sopenharmony_ci<tr><td>v17.5.0</td>
9381cb0ef41Sopenharmony_ci<td><p><span>Added in: v17.5.0</span></p></td></tr>
9391cb0ef41Sopenharmony_ci</tbody></table>
9401cb0ef41Sopenharmony_ci</details>
9411cb0ef41Sopenharmony_ci</div>
9421cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental. Disable this API with the <a href="cli.html#--no-experimental-fetch"><code>--no-experimental-fetch</code></a>
9431cb0ef41Sopenharmony_ciCLI flag.</div><p></p>
9441cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="https://developer.mozilla.org/en-US/docs/Web/API/Request" class="type">&#x3C;Request></a>.</p>
9451cb0ef41Sopenharmony_ci</section><section><h3><code>setImmediate(callback[, ...args])</code><span><a class="mark" href="#setimmediatecallback-args" id="setimmediatecallback-args">#</a></span><a aria-hidden="true" class="legacy" id="globals_setimmediate_callback_args"></a></h3>
9461cb0ef41Sopenharmony_ci<div class="api_metadata">
9471cb0ef41Sopenharmony_ci<span>Added in: v0.9.1</span>
9481cb0ef41Sopenharmony_ci</div>
9491cb0ef41Sopenharmony_ci
9501cb0ef41Sopenharmony_ci<p><a href="timers.html#setimmediatecallback-args"><code>setImmediate</code></a> is described in the <a href="timers.html">timers</a> section.</p>
9511cb0ef41Sopenharmony_ci</section><section><h3><code>setInterval(callback, delay[, ...args])</code><span><a class="mark" href="#setintervalcallback-delay-args" id="setintervalcallback-delay-args">#</a></span><a aria-hidden="true" class="legacy" id="globals_setinterval_callback_delay_args"></a></h3>
9521cb0ef41Sopenharmony_ci<div class="api_metadata">
9531cb0ef41Sopenharmony_ci<span>Added in: v0.0.1</span>
9541cb0ef41Sopenharmony_ci</div>
9551cb0ef41Sopenharmony_ci
9561cb0ef41Sopenharmony_ci<p><a href="timers.html#setintervalcallback-delay-args"><code>setInterval</code></a> is described in the <a href="timers.html">timers</a> section.</p>
9571cb0ef41Sopenharmony_ci</section><section><h3><code>setTimeout(callback, delay[, ...args])</code><span><a class="mark" href="#settimeoutcallback-delay-args" id="settimeoutcallback-delay-args">#</a></span><a aria-hidden="true" class="legacy" id="globals_settimeout_callback_delay_args"></a></h3>
9581cb0ef41Sopenharmony_ci<div class="api_metadata">
9591cb0ef41Sopenharmony_ci<span>Added in: v0.0.1</span>
9601cb0ef41Sopenharmony_ci</div>
9611cb0ef41Sopenharmony_ci
9621cb0ef41Sopenharmony_ci<p><a href="timers.html#settimeoutcallback-delay-args"><code>setTimeout</code></a> is described in the <a href="timers.html">timers</a> section.</p>
9631cb0ef41Sopenharmony_ci</section><section><h3><code>structuredClone(value[, options])</code><span><a class="mark" href="#structuredclonevalue-options" id="structuredclonevalue-options">#</a></span><a aria-hidden="true" class="legacy" id="globals_structuredclone_value_options"></a></h3>
9641cb0ef41Sopenharmony_ci<div class="api_metadata">
9651cb0ef41Sopenharmony_ci<span>Added in: v17.0.0</span>
9661cb0ef41Sopenharmony_ci</div>
9671cb0ef41Sopenharmony_ci
9681cb0ef41Sopenharmony_ci<p>The WHATWG <a href="https://developer.mozilla.org/en-US/docs/Web/API/structuredClone"><code>structuredClone</code></a> method.</p>
9691cb0ef41Sopenharmony_ci</section><section><h3><code>SubtleCrypto</code><span><a class="mark" href="#subtlecrypto" id="subtlecrypto">#</a></span><a aria-hidden="true" class="legacy" id="globals_subtlecrypto"></a></h3>
9701cb0ef41Sopenharmony_ci<div class="api_metadata">
9711cb0ef41Sopenharmony_ci<span>Added in: v17.6.0</span>
9721cb0ef41Sopenharmony_ci</div>
9731cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental. Enable this API with the
9741cb0ef41Sopenharmony_ci<a href="cli.html#--experimental-global-webcrypto"><code>--experimental-global-webcrypto</code></a> CLI flag.</div><p></p>
9751cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webcrypto.html#class-subtlecrypto" class="type">&#x3C;SubtleCrypto></a>. This global is available
9761cb0ef41Sopenharmony_cionly if the Node.js binary was compiled with including support for the
9771cb0ef41Sopenharmony_ci<code>node:crypto</code> module.</p>
9781cb0ef41Sopenharmony_ci</section><section><h3><code>DOMException</code><span><a class="mark" href="#domexception" id="domexception">#</a></span><a aria-hidden="true" class="legacy" id="globals_domexception"></a></h3>
9791cb0ef41Sopenharmony_ci<div class="api_metadata">
9801cb0ef41Sopenharmony_ci<span>Added in: v17.0.0</span>
9811cb0ef41Sopenharmony_ci</div>
9821cb0ef41Sopenharmony_ci
9831cb0ef41Sopenharmony_ci<p>The WHATWG <code>DOMException</code> class. See <a href="https://developer.mozilla.org/en-US/docs/Web/API/DOMException"><code>DOMException</code></a> for more details.</p>
9841cb0ef41Sopenharmony_ci</section><section><h3><code>TextDecoder</code><span><a class="mark" href="#textdecoder" id="textdecoder">#</a></span><a aria-hidden="true" class="legacy" id="globals_textdecoder"></a></h3>
9851cb0ef41Sopenharmony_ci<div class="api_metadata">
9861cb0ef41Sopenharmony_ci<span>Added in: v11.0.0</span>
9871cb0ef41Sopenharmony_ci</div>
9881cb0ef41Sopenharmony_ci
9891cb0ef41Sopenharmony_ci<p>The WHATWG <code>TextDecoder</code> class. See the <a href="util.html#class-utiltextdecoder"><code>TextDecoder</code></a> section.</p>
9901cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>TextDecoderStream</code><span><a class="mark" href="#class-textdecoderstream" id="class-textdecoderstream">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_textdecoderstream"></a></h3>
9911cb0ef41Sopenharmony_ci<div class="api_metadata">
9921cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
9931cb0ef41Sopenharmony_ci</div>
9941cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
9951cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-textdecoderstream"><code>TextDecoderStream</code></a>.</p>
9961cb0ef41Sopenharmony_ci</section><section><h3><code>TextEncoder</code><span><a class="mark" href="#textencoder" id="textencoder">#</a></span><a aria-hidden="true" class="legacy" id="globals_textencoder"></a></h3>
9971cb0ef41Sopenharmony_ci<div class="api_metadata">
9981cb0ef41Sopenharmony_ci<span>Added in: v11.0.0</span>
9991cb0ef41Sopenharmony_ci</div>
10001cb0ef41Sopenharmony_ci
10011cb0ef41Sopenharmony_ci<p>The WHATWG <code>TextEncoder</code> class. See the <a href="util.html#class-utiltextencoder"><code>TextEncoder</code></a> section.</p>
10021cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>TextEncoderStream</code><span><a class="mark" href="#class-textencoderstream" id="class-textencoderstream">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_textencoderstream"></a></h3>
10031cb0ef41Sopenharmony_ci<div class="api_metadata">
10041cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
10051cb0ef41Sopenharmony_ci</div>
10061cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
10071cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-textencoderstream"><code>TextEncoderStream</code></a>.</p>
10081cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>TransformStream</code><span><a class="mark" href="#class-transformstream" id="class-transformstream">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_transformstream"></a></h3>
10091cb0ef41Sopenharmony_ci<div class="api_metadata">
10101cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
10111cb0ef41Sopenharmony_ci</div>
10121cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
10131cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-transformstream"><code>TransformStream</code></a>.</p>
10141cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>TransformStreamDefaultController</code><span><a class="mark" href="#class-transformstreamdefaultcontroller" id="class-transformstreamdefaultcontroller">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_transformstreamdefaultcontroller"></a></h3>
10151cb0ef41Sopenharmony_ci<div class="api_metadata">
10161cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
10171cb0ef41Sopenharmony_ci</div>
10181cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
10191cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-transformstreamdefaultcontroller"><code>TransformStreamDefaultController</code></a>.</p>
10201cb0ef41Sopenharmony_ci</section><section><h3><code>URL</code><span><a class="mark" href="#url" id="url">#</a></span><a aria-hidden="true" class="legacy" id="globals_url"></a></h3>
10211cb0ef41Sopenharmony_ci<div class="api_metadata">
10221cb0ef41Sopenharmony_ci<span>Added in: v10.0.0</span>
10231cb0ef41Sopenharmony_ci</div>
10241cb0ef41Sopenharmony_ci
10251cb0ef41Sopenharmony_ci<p>The WHATWG <code>URL</code> class. See the <a href="url.html#class-url"><code>URL</code></a> section.</p>
10261cb0ef41Sopenharmony_ci</section><section><h3><code>URLSearchParams</code><span><a class="mark" href="#urlsearchparams" id="urlsearchparams">#</a></span><a aria-hidden="true" class="legacy" id="globals_urlsearchparams"></a></h3>
10271cb0ef41Sopenharmony_ci<div class="api_metadata">
10281cb0ef41Sopenharmony_ci<span>Added in: v10.0.0</span>
10291cb0ef41Sopenharmony_ci</div>
10301cb0ef41Sopenharmony_ci
10311cb0ef41Sopenharmony_ci<p>The WHATWG <code>URLSearchParams</code> class. See the <a href="url.html#class-urlsearchparams"><code>URLSearchParams</code></a> section.</p>
10321cb0ef41Sopenharmony_ci</section><section><h3><code>WebAssembly</code><span><a class="mark" href="#webassembly" id="webassembly">#</a></span><a aria-hidden="true" class="legacy" id="globals_webassembly"></a></h3>
10331cb0ef41Sopenharmony_ci<div class="api_metadata">
10341cb0ef41Sopenharmony_ci<span>Added in: v8.0.0</span>
10351cb0ef41Sopenharmony_ci</div>
10361cb0ef41Sopenharmony_ci
10371cb0ef41Sopenharmony_ci<ul>
10381cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type">&#x3C;Object></a></li>
10391cb0ef41Sopenharmony_ci</ul>
10401cb0ef41Sopenharmony_ci<p>The object that acts as the namespace for all W3C
10411cb0ef41Sopenharmony_ci<a href="https://webassembly.org">WebAssembly</a> related functionality. See the
10421cb0ef41Sopenharmony_ci<a href="https://developer.mozilla.org/en-US/docs/WebAssembly">Mozilla Developer Network</a> for usage and compatibility.</p>
10431cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>WritableStream</code><span><a class="mark" href="#class-writablestream" id="class-writablestream">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_writablestream"></a></h3>
10441cb0ef41Sopenharmony_ci<div class="api_metadata">
10451cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
10461cb0ef41Sopenharmony_ci</div>
10471cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
10481cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-writablestream"><code>WritableStream</code></a>.</p>
10491cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>WritableStreamDefaultController</code><span><a class="mark" href="#class-writablestreamdefaultcontroller" id="class-writablestreamdefaultcontroller">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_writablestreamdefaultcontroller"></a></h3>
10501cb0ef41Sopenharmony_ci<div class="api_metadata">
10511cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
10521cb0ef41Sopenharmony_ci</div>
10531cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
10541cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-writablestreamdefaultcontroller"><code>WritableStreamDefaultController</code></a>.</p>
10551cb0ef41Sopenharmony_ci</section><section><h3>Class: <code>WritableStreamDefaultWriter</code><span><a class="mark" href="#class-writablestreamdefaultwriter" id="class-writablestreamdefaultwriter">#</a></span><a aria-hidden="true" class="legacy" id="globals_class_writablestreamdefaultwriter"></a></h3>
10561cb0ef41Sopenharmony_ci<div class="api_metadata">
10571cb0ef41Sopenharmony_ci<span>Added in: v18.0.0</span>
10581cb0ef41Sopenharmony_ci</div>
10591cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_1"><a href="documentation.html#stability-index">Stability: 1</a> - Experimental.</div><p></p>
10601cb0ef41Sopenharmony_ci<p>A browser-compatible implementation of <a href="webstreams.html#class-writablestreamdefaultwriter"><code>WritableStreamDefaultWriter</code></a>.</p></section>
10611cb0ef41Sopenharmony_ci        <!-- API END -->
10621cb0ef41Sopenharmony_ci      </div>
10631cb0ef41Sopenharmony_ci    </div>
10641cb0ef41Sopenharmony_ci  </div>
10651cb0ef41Sopenharmony_ci</body>
10661cb0ef41Sopenharmony_ci</html>
1067