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