| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. Its been available across browsers since 2021 ..
* Some parts of this feature may have varying levels of support.
SharedArrayBuffer ArrayBuffer, , . SharedArrayBuffer ArrayBuffer , . ArrayBuffer SharedArrayBuffer .
SharedArrayBuffer ( , -) postMessage .
SharedArrayBuffers TypedArrays, SharedArrayBuffers. SharedArrayBuffer , SharedArrayBuffer - ( ArrayBuffer). SharedArrayBuffer , , , .
var sab = new SharedArrayBuffer(1024);
worker.postMessage(sab);
SharedArrayBufferWebGLRenderingContext.bufferData()WebGLRenderingContext.bufferSubData()WebGL2RenderingContext.getBufferSubData(), :
Cross-Origin-Opener-Policy `same-origin`` ( )Cross-Origin-Embedder-Policy require-corp credentialless ( ) , , crossOriginIsolated, :
const myWorker = new Worker("worker.js");
if (crossOriginIsolated) {
const buffer = new SharedArrayBuffer(16);
myWorker.postMessage(buffer);
} else {
const buffer = new ArrayBuffer(16);
myWorker.postMessage(buffer);
}
| Specification |
|---|
| ECMAScript 2027 LanguageSpecification # sec-sharedarraybuffer-objects |
AtomicsArrayBufferCross-Origin-Opener-PolicyCross-Origin-Embedder-PolicyCross-Origin-Resource-PolicycrossOriginIsolatedThis page was last modified on 29 . 2026 . by MDN contributors.
SharedArrayBufferObject/FunctionObject.prototype.__defineGetter__()Object.prototype.__defineSetter__()Object.prototype.__lookupGetter__()Object.prototype.__lookupSetter__()Object.prototype.hasOwnProperty()Object.prototype.isPrototypeOf()Object.prototype.propertyIsEnumerable()Object.prototype.toLocaleString()Object.prototype.toString()Object.prototype.valueOf()Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |