From 611146778c149623cd65f42d9a0a1206fe04dd60 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 14 Jun 2024 10:54:54 +1000 Subject: [PATCH 1/3] ExprFeature - remove SharedArrayBuffer is growable, ArrayBuffer reziable --- .../firefox/experimental_features/index.md | 86 ------------------- 1 file changed, 86 deletions(-) diff --git a/files/en-us/mozilla/firefox/experimental_features/index.md b/files/en-us/mozilla/firefox/experimental_features/index.md index 09eeb98987866d4..ee1aa62d00ddf21 100644 --- a/files/en-us/mozilla/firefox/experimental_features/index.md +++ b/files/en-us/mozilla/firefox/experimental_features/index.md @@ -1203,92 +1203,6 @@ This includes: `SVGPathSegList`, [SVGPathElement.getPathSegAtLength()](/en-US/do ## JavaScript -### SharedArrayBuffer is growable - -The {{jsxref("SharedArrayBuffer")}} is now growable using the {{jsxref("SharedArrayBuffer.prototype.grow()")}} method. -The maximum allowed size of the buffer is specified using the `options.maxByteLength` parameter to the [`SharedArrayBuffer()` constructor](/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/SharedArrayBuffer#maxbytelength). -The {{jsxref("SharedArrayBuffer.prototype.growable")}} and {{jsxref("SharedArrayBuffer.prototype.maxByteLength")}} properties indicate whether the buffer can be grow, and its maximum allowed size, respectively. -([Firefox bug 1842773](https://bugzil.la/1842773)). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Release channelVersion addedEnabled by default?
Nightly124No
Developer Edition124No
Beta124No
Release124No
Preference namejavascript.options.experimental.sharedarraybuffer_growable
- -### ArrayBuffer is resizable - -The {{jsxref("ArrayBuffer")}} can now be resized using the {{jsxref("ArrayBuffer.prototype.resize()")}} method. -The maximum allowed size of the buffer is specified using the `options.maxByteLength` parameter to the [`ArrayBuffer()` constructor](/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/ArrayBuffer#maxbytelength). -The {{jsxref("ArrayBuffer.prototype.resizable")}} and {{jsxref("ArrayBuffer.prototype.maxByteLength")}} properties indicate whether the buffer can be resized, and its maximum allowed size, respectively. -([Firefox bug 1842773](https://bugzil.la/1842773).) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Release channelVersion addedEnabled by default?
Nightly124No
Developer Edition124No
Beta124No
Release124No
Preference namejavascript.options.experimental.arraybuffer_resizable
- ### Float16Array Typed Arrays {{jsxref("Float16Array")}} typed arrays are now supported, along with {{jsxref("DataView.prototype.getFloat16()")}} and {{jsxref("DataView.prototype.setFloat16()")}} for reading and setting `Float16Array` values from a {{jsxref("DataView")}}, and the {{jsxref("Math.f16round()")}} static method, which can be used to round numbers to 16 bits. From 1a82ddb3760c55256719f682dbe759df368a8c2c Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 14 Jun 2024 11:11:29 +1000 Subject: [PATCH 2/3] FF128RelNote: SharedArrayBuffer growable, ArrayBuffer reziable --- files/en-us/mozilla/firefox/releases/128/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/files/en-us/mozilla/firefox/releases/128/index.md b/files/en-us/mozilla/firefox/releases/128/index.md index 73889b26a899214..2fe901024de71b5 100644 --- a/files/en-us/mozilla/firefox/releases/128/index.md +++ b/files/en-us/mozilla/firefox/releases/128/index.md @@ -27,6 +27,16 @@ This article provides information about the changes in Firefox 128 that affect d ### JavaScript +- Resizeable {{jsxref("ArrayBuffer")}} and growable {{jsxref("SharedArrayBuffer")}} are now supported, allowing the size of buffers to be changed without having to allocate a new buffer and copy data into it ([Firefox bug 1884150](https://bugzil.la/1884150)). + The relevant method and properties are: + + - Grow {{jsxref("SharedArrayBuffer")}} using the {{jsxref("SharedArrayBuffer.prototype.grow()")}} method. + The maximum allowed size of the buffer is specified using the `options.maxByteLength` parameter to the [`SharedArrayBuffer()` constructor](/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/SharedArrayBuffer#maxbytelength). + The {{jsxref("SharedArrayBuffer.prototype.growable")}} and {{jsxref("SharedArrayBuffer.prototype.maxByteLength")}} properties indicate whether the buffer can grow, and its maximum allowed size, respectively. + - Resize {{jsxref("ArrayBuffer")}} using the {{jsxref("ArrayBuffer.prototype.resize()")}} method. + The maximum allowed size of the buffer is specified using the `options.maxByteLength` parameter to the [`ArrayBuffer()` constructor](/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/ArrayBuffer#maxbytelength). + The {{jsxref("ArrayBuffer.prototype.resizable")}} and {{jsxref("ArrayBuffer.prototype.maxByteLength")}} properties indicate whether the buffer can be resized, and its maximum allowed size, respectively. + #### Removals ### SVG From 55350f6a437b4152125bdf2388d395a9358ef10e Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 5 Jul 2024 11:23:42 +1000 Subject: [PATCH 3/3] Update files/en-us/mozilla/firefox/releases/128/index.md Co-authored-by: Brian Thomas Smith --- files/en-us/mozilla/firefox/releases/128/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/mozilla/firefox/releases/128/index.md b/files/en-us/mozilla/firefox/releases/128/index.md index af84b6085218391..ac90736cd956258 100644 --- a/files/en-us/mozilla/firefox/releases/128/index.md +++ b/files/en-us/mozilla/firefox/releases/128/index.md @@ -28,7 +28,7 @@ This article provides information about the changes in Firefox 128 that affect d ### JavaScript - Resizeable {{jsxref("ArrayBuffer")}} and growable {{jsxref("SharedArrayBuffer")}} are now supported, allowing the size of buffers to be changed without having to allocate a new buffer and copy data into it ([Firefox bug 1884150](https://bugzil.la/1884150)). - The relevant method and properties are: + The relevant methods and properties are: - Grow {{jsxref("SharedArrayBuffer")}} using the {{jsxref("SharedArrayBuffer.prototype.grow()")}} method. The maximum allowed size of the buffer is specified using the `options.maxByteLength` parameter to the [`SharedArrayBuffer()` constructor](/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/SharedArrayBuffer#maxbytelength).