-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed
Labels
questionIssues that look for answers.Issues that look for answers.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
- Version: v5.11.0
- Platform: MSYS_NT-6.3
- Subsystem: --
Using this code:
"use strict";
let f = (...a) => a;
console.log(f(3, 4, 5));
I get this error:
let f = (...a) => a;
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:148:18)
at node.js:405:3
Whereas the expected output would be an array [3, 4, 5].
Metadata
Metadata
Assignees
Labels
questionIssues that look for answers.Issues that look for answers.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.