The Tor Browser
/ file comparison
Search:
summary
shortlog
changelog
graph
tags
bookmarks
branches
files
help
file
revisions
annotate
diff
comparison
raw
comparison: js/src/jit-test/tests/arrow-functions/params-rest-2.js
js/src/jit-test/tests/arrow-functions/params-rest-2.js
changeset 0
6474c204b198
equal
deleted
inserted
replaced
-1:000000000000
0:8a255441e772
1
// Rest parameters work in arrow functions
2
3
var f = (a, b, ...rest) => [a, b, rest];
4
assertEq(f().toSource(), "[(void 0), (void 0), []]");
5
assertEq(f(1, 2, 3, 4).toSource(), "[1, 2, [3, 4]]");