Skip to content

Commit 8292290

Browse files
demurgosElchi3
authored andcommitted
Update nodejs compat for javascript.function.rest_parameters (#1744)
* Update nodejs compat for javascript.function.rest_parameters This commit documents Node.js compatibility for function rest parameters. This mainly depends on V8 but I tracked the relevant Node versions, commits and PRs. Note that I used `4` for the version of the flag addition because `3` corresponds to the io.js fork and is not recognized as a valid `nodejs` version by the linter. Flagged support (io.js 3.0.0, V8 4.4): - [Node.js changelog entry for version 3.0.0](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_IOJS.md#2015-08-04-version-300-rvagg) - [Pull Request](nodejs/node#2022) - [Commit, with anchor to relevant line](nodejs/node@70d1f32f56#diff-b2e04de0d939630d882245c2243e7e47R200) Stable support (Node.js 6.0.0, V8 4.7): - [Node.js changelog entry for version 6.0.0](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#2016-04-26-version-600-current-jasnell) - [Pull Request](nodejs/node#4106) - [Commit, with anchor to relevant line](nodejs/node@8a43a3d#diff-b2e04de0d939630d882245c2243e7e47R217) Flag removal (Node.js 6.0.0, V8 4.9): - [Node.js changelog entry for version 6.0.0](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#2016-04-26-version-600-current-jasnell) - [Pull Request](nodejs/node#4722) - [Commit, with anchor to relevant line](nodejs/node@069e02a#diff-b2e04de0d939630d882245c2243e7e47L221)
1 parent d7608ab commit 8292290

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

javascript/functions.json

+15-3
Original file line numberDiff line numberDiff line change
@@ -904,9 +904,21 @@
904904
"ie": {
905905
"version_added": false
906906
},
907-
"nodejs": {
908-
"version_added": true
909-
},
907+
"nodejs": [
908+
{
909+
"version_added": "6"
910+
},
911+
{
912+
"version_added": "4",
913+
"version_removed": "6",
914+
"flags": [
915+
{
916+
"type": "runtime_flag",
917+
"name": "--harmony-rest-parameters"
918+
}
919+
]
920+
}
921+
],
910922
"opera": {
911923
"version_added": "34"
912924
},

0 commit comments

Comments
 (0)