mirror of
git://develop.git.wordpress.org/
synced 2025-04-02 03:02:36 +02:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59963 602fd350-edb4-49c9-b593-d223f7449a82
32 lines
482 B
Plaintext
32 lines
482 B
Plaintext
{
|
|
"boss": true,
|
|
"curly": true,
|
|
"eqeqeq": true,
|
|
"eqnull": true,
|
|
"esversion": 10,
|
|
"expr": true,
|
|
"immed": true,
|
|
"noarg": true,
|
|
"nonbsp": true,
|
|
"quotmark": "single",
|
|
"undef": true,
|
|
"unused": true,
|
|
|
|
"browser": true,
|
|
|
|
"globals": {
|
|
"_": false,
|
|
"Backbone": false,
|
|
"jQuery": false,
|
|
"JSON": false,
|
|
"wp": false,
|
|
"export": false,
|
|
"module": false,
|
|
"require": false,
|
|
"WorkerGlobalScope": false,
|
|
"self": false,
|
|
"OffscreenCanvas": false,
|
|
"Promise": false
|
|
}
|
|
}
|