Use new Array instead of Array for V8 optimization (#6250)
* Use new Array instead of Array for V8 optimization * fix spacing [skip ci] * Remove extraneous use strict clauses
This commit is contained in:
committed by
Justin Ridgewell
parent
24713e5040
commit
e98bb3dc60
@@ -1,5 +1,5 @@
|
||||
function foo() {
|
||||
for (var _len = arguments.length, bar = Array(_len), _key = 0; _key < _len; _key++) {
|
||||
for (var _len = arguments.length, bar = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
bar[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user