* Use new Array instead of Array for V8 optimization * fix spacing [skip ci] * Remove extraneous use strict clauses
14 lines
385 B
JavaScript
14 lines
385 B
JavaScript
// #3861
|
|
function t() {
|
|
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "default";
|
|
var _arguments$ = arguments[1],
|
|
a = _arguments$.a,
|
|
b = _arguments$.b;
|
|
|
|
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
args[_key - 2] = arguments[_key];
|
|
}
|
|
|
|
console.log(x, a, b, args);
|
|
}
|