Pass options hash to context function exec

Fixes #599
This commit is contained in:
kpdecker
2013-10-14 21:23:06 -05:00
parent 3702efee5b
commit 4fda71364e
2 changed files with 2 additions and 1 deletions
@@ -499,7 +499,7 @@ JavaScriptCompiler.prototype = {
var nextStack = this.nextStack();
this.source.push('if (' + nextStack + ' = ' + helperName + ') { ' + nextStack + ' = ' + nextStack + '.call(' + helper.callParams + '); }');
this.source.push('else { ' + nextStack + ' = ' + nonHelper + '; ' + nextStack + ' = typeof ' + nextStack + ' === functionType ? ' + nextStack + '.apply(depth0) : ' + nextStack + '; }');
this.source.push('else { ' + nextStack + ' = ' + nonHelper + '; ' + nextStack + ' = typeof ' + nextStack + ' === functionType ? ' + nextStack + '.call(depth0, options) : ' + nextStack + '; }');
},
// [invokePartial]