From f191fd78834b7edb672cc817b62d0dd1f1f0d691 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 22 Nov 2014 23:32:03 +1100 Subject: [PATCH] update #203 test --- .../transformation/spread/new-expression/expected.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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));