Skip to content

Commit d84b7da

Browse files
committed
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 f6eb668 commit d84b7da

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

javascript/functions.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,9 +856,23 @@
856856
"ie": {
857857
"version_added": false
858858
},
859-
"nodejs": {
860-
"version_added": true
861-
},
859+
"nodejs": [
860+
{
861+
"version_added": "6",
862+
"notes": "Added in <a href='https://github.com/nodejs/node/pull/4106'>PR #4106</a>."
863+
},
864+
{
865+
"version_added": "4",
866+
"version_removed": "6",
867+
"flags": [
868+
{
869+
"type": "runtime_flag",
870+
"name": "--harmony-rest-parameters"
871+
}
872+
],
873+
"notes": "Added in <a href='https://github.com/nodejs/node/pull/2022'>PR #2022</a>. Removed in <a href='https://github.com/nodejs/node/pull/4722'>PR #4722</a>"
874+
}
875+
],
862876
"opera": {
863877
"version_added": "34"
864878
},

0 commit comments

Comments
 (0)