lib/minjs/func.rb in minjs-0.1.3 vs lib/minjs/func.rb in minjs-0.1.5
- old
+ new
@@ -32,11 +32,10 @@
}
end
def func_exp(lex, context)
return nil if lex.match_lit(ECMA262::ID_FUNCTION).nil?
- STDERR.puts "*** func_exp" if @debug
- lex.debug_lit if @debug
+ @logger.debug "*** func_exp"
lex.eval_lit {
id_opt = identifier(lex, context)
new_env = context.lex_env.new_declarative_env()
new_context = ECMA262::Context.new