diff --git a/test/fixtures/transformation/spread/new-expression/expected.js b/test/fixtures/transformation/spread/new-expression/expected.js index 49f0e64e87..112c05e007 100644 --- a/test/fixtures/transformation/spread/new-expression/expected.js +++ b/test/fixtures/transformation/spread/new-expression/expected.js @@ -1,11 +1,11 @@ "use strict"; var _applyConstructor = function (Constructor, args) { - var bindArgs = [null].concat(args); + var instance = Object.create(Constructor.prototype); - var Factory = Constructor.bind.apply(Constructor, bindArgs); + Constructor.apply(instance, args); - return new Factory(); + return instance; }; _applyConstructor(Numbers, Array.from(nums));