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/arguments/rest-underflow.js
js/src/jit-test/tests/arguments/rest-underflow.js
changeset 0
6474c204b198
equal
deleted
inserted
replaced
-1:000000000000
0:ea5bb39fe1d8
1
function f(a, b, c, ...rest) {
2
assertEq(a, 1);
3
assertEq(b, undefined);
4
assertEq(c, undefined);
5
assertEq(Array.isArray(rest), true);
6
assertEq(rest.length, 0);
7
assertEq(Object.getPrototypeOf(rest), Array.prototype);
8
}
9
f(1);