diff --git a/lib/rhino/context.rb b/lib/rhino/context.rb index 30ae9b5..9f74ad1 100644 --- a/lib/rhino/context.rb +++ b/lib/rhino/context.rb @@ -245,7 +245,7 @@ module Rhino 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