diff --git a/lib/6to5/templates/apply-constructor.js b/lib/6to5/templates/apply-constructor.js index b02f831251..0c61411455 100644 --- a/lib/6to5/templates/apply-constructor.js +++ b/lib/6to5/templates/apply-constructor.js @@ -1,5 +1,5 @@ (function (Constructor, args) { - var bindArgs = [null].concat(args); - var Factory = Constructor.bind.apply(Constructor, bindArgs); - return new Factory; + var instance = Object.create(Constructor.prototype); + Constructor.apply(instance, args); + return instance; });