Comment #1 on issue 3018 by [email protected]: Implement the spread operator
http://code.google.com/p/v8/issues/detail?id=3018
Sorry, totally mixed two things. The description is about rest parameters.
Spread operator can be used in two places:
1) function invocations, e.g.:
function f(a, b) {return a + b;}
var a = [2, 3];
f(...a); // 5
2) arrays, e.g.:
var a = [2, 3];
[1, ...a, 4]; // [1, 2, 3, 4]
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.