📃 January 2025 release notes
Newly available
The following features are newly available:
-
Promise.try():
The
Promise.try()
static method returns a promise that takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result in aPromise
.
New in Chrome Android
The following features are now available in Chrome Android:
-
File system access:
The
showOpenFilePicker()
,showDirectoryPicker()
, andshowSaveFilePicker()
methods request access to files and directories on the user's device and returns a handle for reading and writing to them.
New in Firefox
The following features are now available in Firefox:
-
RegExp.escape():
The
RegExp.escape()
static method takes a string and replaces any characters that are potentially special characters of a regular expression with equivalent escape sequences. For example,RegExp.escape("[abc]")
returns"\\[abc\\]"
. - Memory64 (WebAssembly): Instructions accept 64-bit memory indexes.
-
String builtins (WebAssembly):
The WebAssembly builtin string functions mirror a subset of the JavaScript
String
API and adapt it to be efficiently callable without JavaScript glue code.
New in Firefox for Android
The following features are now available in Firefox for Android:
-
RegExp.escape():
The
RegExp.escape()
static method takes a string and replaces any characters that are potentially special characters of a regular expression with equivalent escape sequences. For example,RegExp.escape("[abc]")
returns"\\[abc\\]"
. - Memory64 (WebAssembly): Instructions accept 64-bit memory indexes.
-
String builtins (WebAssembly):
The WebAssembly builtin string functions mirror a subset of the JavaScript
String
API and adapt it to be efficiently callable without JavaScript glue code.