lib/rhino/context.rb in therubyrhino-2.0.2 vs lib/rhino/context.rb in therubyrhino-2.0.3

- old
+ new

@@ -243,10 +243,10 @@ # Some methods such as eval() will fail unless the context is open. def open(&block) do_open(&block) rescue JS::RhinoException => e if code_generation_error?(e) - warn "[INFO] Rhino byte-code generation failed forcing #{@native} into interpreted mode" + Rhino.warn "[INFO] Rhino byte-code generation failed forcing #{@native} into interpreted mode" self.optimization_level = -1 retry end raise Rhino::JSError.new(e) end