Actually caching the splatted constructor this time.

This commit is contained in:
Timothy Jones
2010-09-12 01:49:25 +12:00
parent d1f31c5143
commit e5837b4ee9
3 changed files with 8 additions and 2 deletions

View File

@@ -486,7 +486,7 @@ exports.CallNode = class CallNode extends BaseNode
#{@first}(function() {
#{@idt(1)}var ctor = function(){};
#{@idt(1)}__extends(ctor, #{a} = #{meth});
#{@idt(1)}return typeof (#{b} = #{meth}.apply(#{c} = new ctor, #{ @compileSplatArguments(o) })) === "object" ? #{b} : #{c};
#{@idt(1)}return typeof (#{b} = #{a}.apply(#{c} = new ctor, #{ @compileSplatArguments(o) })) === "object" ? #{b} : #{c};
#{@tab}}).#{ if mentionsArgs then 'apply(this, arguments)' else 'call(this)'}#{@last}
"""
else