Permalink
Browse files

use Rhino.warn explicitly otherwise it's a Kernel.warn

  • Loading branch information...
1 parent 741a3c2 commit 9e4ae2e1a631b9d6f96bfaf1c116884d52230773 @kares kares committed Dec 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rhino/context.rb
@@ -245,7 +245,7 @@ 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

0 comments on commit 9e4ae2e

Please sign in to comment.