sharedArrayBuffer.byteLength
The byteLength
accessor property represents the length of an SharedArrayBuffer
in bytes.
Description
The byteLength
property is an accessor property whose set accessor function is undefined
, meaning that you can only read this property. The value is established when the shared array is constructed and cannot be changed.
Examples
Using byteLength
var sab = new SharedArrayBuffer(1024);
sab.byteLength; // 1024
Specifications
|
Desktop |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
byteLength |
68
- 68
- 60 — 63
- Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This was a temporary removal while mitigations were put in place.
|
79
|
79
- 79
- 57
Disabled
- Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
- Disabled From version 57: this feature is behind the
javascript.options.shared_memory preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
- 55 — 57
- 46 — 55
Disabled
- Disabled From version 46 until version 55 (exclusive): this feature is behind the
javascript.options.shared_memory preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
|
No |
No |
10.1 — 11 |
|
Mobile |
|
Android webview |
Chrome for Android |
Firefox for Android |
Opera for Android |
Safari on iOS |
Samsung Internet |
byteLength |
60 — 63
- 60 — 63
- Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
|
60 — 63
- 60 — 63
- Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
|
79
- 79
- 57
Disabled
- Support was disabled by default to mitigate speculative execution side-channel attacks (Mozilla Security Blog).
- Disabled From version 57: this feature is behind the
javascript.options.shared_memory preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
- 55 — 57
- 46 — 55
Disabled
- Disabled From version 46 until version 55 (exclusive): this feature is behind the
javascript.options.shared_memory preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
|
No |
10.3 — 11 |
No
- No
- Chrome disabled SharedArrayBuffer on January 5, 2018 to help reduce the efficacy of speculative side-channel attacks. This is intended as a temporary measure until other mitigations are in place.
|
|
Server |
|
Node.js |
byteLength |
8.10.0 |
See also