Skip to content

Commit

Permalink
FF128 ReleaseNote/Expr Features - shareable/growable buffers (mdn#34135)
Browse files Browse the repository at this point in the history
* ExprFeature - remove SharedArrayBuffer is growable, ArrayBuffer reziable

* FF128RelNote: SharedArrayBuffer growable, ArrayBuffer reziable

* Update files/en-us/mozilla/firefox/releases/128/index.md

Co-authored-by: Brian Thomas Smith <brian@smith.berlin>

---------

Co-authored-by: Brian Thomas Smith <brian@smith.berlin>
  • Loading branch information
2 people authored and evelinabe committed Jul 5, 2024
1 parent ea3d258 commit f9ab0a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 86 deletions.
86 changes: 0 additions & 86 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)).

<table>
<thead>
<tr>
<th>Release channel</th>
<th>Version added</th>
<th>Enabled by default?</th>
</tr>
</thead>
<tbody>
<tr>
<th>Nightly</th>
<td>124</td>
<td>No</td>
</tr>
<tr>
<th>Developer Edition</th>
<td>124</td>
<td>No</td>
</tr>
<tr>
<th>Beta</th>
<td>124</td>
<td>No</td>
</tr>
<tr>
<th>Release</th>
<td>124</td>
<td>No</td>
</tr>
<tr>
<th>Preference name</th>
<td colspan="2"><code>javascript.options.experimental.sharedarraybuffer_growable</code></td>
</tr>
</tbody>
</table>

### 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).)

<table>
<thead>
<tr>
<th>Release channel</th>
<th>Version added</th>
<th>Enabled by default?</th>
</tr>
</thead>
<tbody>
<tr>
<th>Nightly</th>
<td>124</td>
<td>No</td>
</tr>
<tr>
<th>Developer Edition</th>
<td>124</td>
<td>No</td>
</tr>
<tr>
<th>Beta</th>
<td>124</td>
<td>No</td>
</tr>
<tr>
<th>Release</th>
<td>124</td>
<td>No</td>
</tr>
<tr>
<th>Preference name</th>
<td colspan="2"><code>javascript.options.experimental.arraybuffer_resizable</code></td>
</tr>
</tbody>
</table>

### 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.
Expand Down
10 changes: 10 additions & 0 deletions files/en-us/mozilla/firefox/releases/128/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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).
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
Expand Down

0 comments on commit f9ab0a6

Please sign in to comment.