Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move javascript.statements.default.exports to exports.default; remove default.switch #5869

Merged
merged 3 commits into from
May 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
277 changes: 111 additions & 166 deletions javascript/statements.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,172 +444,6 @@
}
}
},
"default": {
"switch": {
"__compat": {
"description": "<code>default</code> keyword in <code>switch</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/default",
"spec_url": "https://tc39.es/ecma262/#sec-switch-statement",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": {
"version_added": "18"
},
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "1"
},
"firefox_android": {
"version_added": "4"
},
"ie": {
"version_added": "4"
},
"nodejs": {
"version_added": "0.1.100"
},
"opera": {
"version_added": "4"
},
"opera_android": {
"version_added": "10.1"
},
"safari": {
"version_added": "1"
},
"safari_ios": {
"version_added": "1"
},
"samsunginternet_android": {
"version_added": "1.0"
},
"webview_android": {
"version_added": "1"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"export": {
"__compat": {
"description": "<code>default</code> keyword with <code>export</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/default",
"spec_url": "https://tc39.es/ecma262/#sec-exports",
"support": {
"chrome": {
"version_added": "61"
},
"chrome_android": {
"version_added": "61"
},
"edge": [
{
"version_added": "16"
},
{
"version_added": "15",
"flags": [
{
"name": "Experimental JavaScript Features",
"type": "preference"
}
]
}
],
"firefox": [
{
"version_added": "60"
},
{
"version_added": "54",
"version_removed": "60",
"flags": [
{
"name": "dom.moduleScripts.enabled",
"type": "preference"
}
]
}
],
"firefox_android": [
{
"version_added": "60"
},
{
"version_added": "54",
"version_removed": "60",
"flags": [
{
"name": "dom.moduleScripts.enabled",
"type": "preference"
}
]
}
],
"ie": {
"version_added": false
},
"nodejs": [
{
"version_added": "13.2.0",
"notes": "Modules must either have a filename ending in <code>.mjs</code>, or the nearest parent <code>package.json</code> file must contain <code>\"type\": \"module\"</code>. See Node's <a href='https://nodejs.org/api/esm.html#esm_enabling'>ECMAScript Modules documentation</a> for more details."
},
{
"version_added": "12.0.0",
"flags": [
{
"name": "--experimental-modules",
"type": "runtime_flag"
}
],
"notes": "Modules must either have a filename ending in <code>.mjs</code>, or the nearest parent <code>package.json</code> file must contain <code>\"type\": \"module\"</code>. See Node's <a href='https://nodejs.org/docs/latest-v12.x/api/esm.html#esm_enabling'>ECMAScript Modules documentation</a> for more details."
},
{
"version_added": "8.5.0",
"flags": [
{
"name": "--experimental-modules",
"type": "runtime_flag"
}
],
"notes": "Module filenames must end with <code>.mjs</code>, not </code>.js</code>. See Node's <a href='https://nodejs.org/docs/latest-v8.x/api/esm.html#esm_enabling'>ECMAScript Modules documentation</a> for more details."
}
],
"opera": {
"version_added": "47"
},
"opera_android": {
"version_added": "44"
},
"safari": {
"version_added": "10.1"
},
"safari_ios": {
"version_added": "10.3"
},
"samsunginternet_android": {
"version_added": "8.0"
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
},
"do_while": {
"__compat": {
"description": "<code>do...while</code>",
Expand Down Expand Up @@ -824,6 +658,117 @@
"standard_track": true,
"deprecated": false
}
},
"default": {
"__compat": {
"description": "<code>default</code> keyword with <code>export</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/default",
"spec_url": "https://tc39.es/ecma262/#sec-exports",
"support": {
"chrome": {
"version_added": "61"
},
"chrome_android": {
"version_added": "61"
},
"edge": [
{
"version_added": "16"
},
{
"version_added": "15",
"flags": [
{
"name": "Experimental JavaScript Features",
"type": "preference"
}
]
}
],
"firefox": [
{
"version_added": "60"
},
{
"version_added": "54",
"version_removed": "60",
"flags": [
{
"name": "dom.moduleScripts.enabled",
"type": "preference"
}
]
}
],
"firefox_android": [
{
"version_added": "60"
},
{
"version_added": "54",
"version_removed": "60",
"flags": [
{
"name": "dom.moduleScripts.enabled",
"type": "preference"
}
]
}
],
"ie": {
"version_added": false
},
"nodejs": [
{
"version_added": "13.2.0",
"notes": "Modules must either have a filename ending in <code>.mjs</code>, or the nearest parent <code>package.json</code> file must contain <code>\"type\": \"module\"</code>. See Node's <a href='https://nodejs.org/api/esm.html#esm_enabling'>ECMAScript Modules documentation</a> for more details."
},
{
"version_added": "12.0.0",
"flags": [
{
"name": "--experimental-modules",
"type": "runtime_flag"
}
],
"notes": "Modules must either have a filename ending in <code>.mjs</code>, or the nearest parent <code>package.json</code> file must contain <code>\"type\": \"module\"</code>. See Node's <a href='https://nodejs.org/docs/latest-v12.x/api/esm.html#esm_enabling'>ECMAScript Modules documentation</a> for more details."
},
{
"version_added": "8.5.0",
"flags": [
{
"name": "--experimental-modules",
"type": "runtime_flag"
}
],
"notes": "Module filenames must end with <code>.mjs</code>, not </code>.js</code>. See Node's <a href='https://nodejs.org/docs/latest-v8.x/api/esm.html#esm_enabling'>ECMAScript Modules documentation</a> for more details."
}
],
"opera": {
"version_added": "47"
},
"opera_android": {
"version_added": "44"
},
"safari": {
"version_added": "10.1"
},
"safari_ios": {
"version_added": "10.3"
},
"samsunginternet_android": {
"version_added": "8.0"
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
},
"for": {
Expand Down