compat-table / compat-table/compat-table
parameters without defaults after default parameters
Open
ES6
Help wanted
new test
- Dominant language
- JavaScript
- Stars
- 4.5k
- Forks
- 933
- PR merge metrics
- No merged PRs in 30d
Description
Please add engines supporting this syntax to the table:
```js
function f(x = 1, y) {
return [x, y];
}
f(); // [1, undefined]
f(2); // [2, undefined]
```
It was a bug at one point in Gecko 26, but has since been fixed.
Doc: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters#Parameters_without_defaults_after_default_parameters
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=777060
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.