Use construct helper in New Spread (#7677)

* Use construct helper in New Spread

* CircleCI
This commit is contained in:
Justin Ridgewell
2018-04-06 10:40:38 +01:00
committed by GitHub
parent 450a1678f2
commit d17adf40df
6 changed files with 32 additions and 36 deletions

View File

@@ -1,2 +1,2 @@
new (Function.prototype.bind.apply(Numbers, [null].concat(babelHelpers.toConsumableArray(nums))))();
new (Function.prototype.bind.apply(Numbers, [null].concat([1], babelHelpers.toConsumableArray(nums))))();
babelHelpers.construct(Numbers, babelHelpers.toConsumableArray(nums));
babelHelpers.construct(Numbers, [1].concat(babelHelpers.toConsumableArray(nums)));