From 473bed0315fcf3780f2017403972152ef2e9ce53 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Mon, 25 Nov 2024 14:29:56 +1100 Subject: [PATCH 1/2] FF134 Promise.try() relnote/expr feature --- .../firefox/experimental_features/index.md | 40 ------------------- .../mozilla/firefox/releases/134/index.md | 4 ++ 2 files changed, 4 insertions(+), 40 deletions(-) diff --git a/files/en-us/mozilla/firefox/experimental_features/index.md b/files/en-us/mozilla/firefox/experimental_features/index.md index 5032c8f835475e3..823e3554a3d3a3d 100644 --- a/files/en-us/mozilla/firefox/experimental_features/index.md +++ b/files/en-us/mozilla/firefox/experimental_features/index.md @@ -1248,46 +1248,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)). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Release channelVersion addedEnabled by default?
Nightly132No
Developer Edition--
Beta--
Release--
Preference namejavascript.options.experimental.promise_try
- ### 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)). diff --git a/files/en-us/mozilla/firefox/releases/134/index.md b/files/en-us/mozilla/firefox/releases/134/index.md index a2e4c0cd5587669..edde42179a40ac8 100644 --- a/files/en-us/mozilla/firefox/releases/134/index.md +++ b/files/en-us/mozilla/firefox/releases/134/index.md @@ -22,6 +22,10 @@ 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)). + #### Removals ### SVG From 6f20c3b7291d64a30440b2fec03043ee585cd201 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 25 Nov 2024 17:58:16 +0100 Subject: [PATCH 2/2] Update files/en-us/mozilla/firefox/releases/134/index.md --- files/en-us/mozilla/firefox/releases/134/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/mozilla/firefox/releases/134/index.md b/files/en-us/mozilla/firefox/releases/134/index.md index 57f0db8ed19a9bc..2a985a556caac96 100644 --- a/files/en-us/mozilla/firefox/releases/134/index.md +++ b/files/en-us/mozilla/firefox/releases/134/index.md @@ -24,7 +24,7 @@ This article provides information about the changes in Firefox 134 that affect d - 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)). + 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