Add fixtures for deopt due to arguments.

This commit is contained in:
Jesse McCarthy
2016-01-11 10:39:54 -05:00
parent 6a3b3dc3e9
commit 41066f55ea
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
function x (...rest) {
arguments;
}

View File

@@ -0,0 +1,7 @@
function x() {
for (var _len = arguments.length, rest = Array(_len), _key = 0; _key < _len; _key++) {
rest[_key] = arguments[_key];
}
arguments;
}