Merge pull request #749 from jenseng/option_subexpressions_fix

properly handle multiple subexpressions in the same hash, fixes #748
This commit is contained in:
Kevin Decker
2014-03-05 14:38:26 -06:00
3 changed files with 26 additions and 10 deletions
@@ -608,11 +608,10 @@ JavaScriptCompiler.prototype = {
// [assignToHash]
//
// On stack, before: value, hash, ...
// On stack, after: hash, ...
// On stack, before: value, ..., hash, ...
// On stack, after: ..., hash, ...
//
// Pops a value and hash off the stack, assigns `hash[key] = value`
// and pushes the hash back onto the stack.
// Pops a value off the stack and assigns it to the current hash
assignToHash: function(key) {
var value = this.popStack(),
context,