[wp-trac] [WordPress Trac] #63077: JSHint config still requires esversion 6 which blocks use of async functions
WordPress Trac
noreply at wordpress.org
Mon Mar 10 21:24:37 UTC 2025
#63077: JSHint config still requires esversion 6 which blocks use of async
functions
------------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: javascript
------------------------------+--------------------------
Changes (by westonruter):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"59963" 59963]:
{{{
#!CommitTicketReference repository="" revision="59963"
Bump `esversion` from 6 to 10 in JSHint config.
The current `esversion` 6 corresponds to an ECMAScript version from a
decade ago (2015). Updating from 6 to 10 allows the following features to
be used in Core JS: the exponentiation operator, async functions, shared
memory, atomics, asynchronous iteration, rest/spread properties, various
RegExp extensions, and optional catch bindings. These features have been
supported by all browsers (except for IE11) well beyond WordPress's
browser support policy. This also brings Core's allowed ES version closer
in line with Gutenberg which is currently using features like async
functions.
Props westonruter, swissspidy, mukesh27.
Fixes #63077.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63077#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list