lib/minjs/statement.rb in minjs-0.2.1 vs lib/minjs/statement.rb in minjs-0.2.2
- old
+ new
@@ -336,10 +336,10 @@
#
def with_statement(lex, context)
return nil unless lex.match_lit(ECMA262::ID_WITH)
lex.eval_lit {
if lex.match_lit(ECMA262::PUNC_LPARENTHESIS) and e=exp(lex, context, {}) and lex.match_lit(ECMA262::PUNC_RPARENTHESIS) and s=statement(lex, context)
- ECMA262::StWith.new(e, s)
+ ECMA262::StWith.new(context, e, s)
else
raise ParseError.new("switch_statement", lex)
end
}
end