Skip to content

Commit

Permalink
FF134 Promise.try() relnote/expr feature (#36958)
Browse files Browse the repository at this point in the history
* FF134 Promise.try() relnote/expr feature

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

---------

Co-authored-by: Brian Smith <[email protected]>
  • Loading branch information
hamishwillee and bsmth authored Nov 25, 2024
1 parent 8fdf195 commit d278428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 40 deletions.
40 changes: 0 additions & 40 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1288,46 +1288,6 @@ This includes: `SVGPathSegList`, [SVGPathElement.getPathSegAtLength()](/en-US/do

## JavaScript

### Promise.try()

{{jsxref("Promise.try()")}} is a convenience method that takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result in a {{jsxref("Promise")}} so that promise semantics (e.g. {{jsxref("Promise.then", ".then()")}}, {{jsxref("Promise.catch", ".catch()")}}) can be used to handle it ([Firefox bug 1905364](https://bugzil.la/1905364)).

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

### JSON.parse with source

The [`JSON.parse` source text access proposal](https://github.com/tc39/proposal-json-parse-with-source) extends [`JSON.parse`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) behavior to provide features to mitigate issues around loss of precision when converting values such as large floats and date values between JavaScript values and JSON text. ([Firefox bug 1913085](https://bugzil.la/1913085), [Firefox bug 1925334](https://bugzil.la/1925334)).
Expand Down
3 changes: 3 additions & 0 deletions files/en-us/mozilla/firefox/releases/134/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ This article provides information about the changes in Firefox 134 that affect d

### JavaScript

- The {{jsxref("Promise.try()")}} convenience method is now supported.
The method takes a callback of any kind (a function that returns or throws, synchronously or asynchronously) and wraps its result in a {{jsxref("Promise")}}.
This allows you to use promise semantics ({{jsxref("Promise.then", ".then()")}}, {{jsxref("Promise.catch", ".catch()")}}) to handle the result from any kind of method. ([Firefox bug 1917879](https://bugzil.la/1917879) and [Firefox bug 1905364](https://bugzil.la/1905364)).
- {{jsxref("Intl.DurationFormat")}} is supported, enabling locale-sensitive formatting of durations. ([Firefox bug 1648139](https://bugzil.la/1648139)).

#### Removals
Expand Down

0 comments on commit d278428

Please sign in to comment.