1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00

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

This commit is contained in:
kares 2012-12-05 13:41:26 +01:00
parent 741a3c269b
commit 9e4ae2e1a6

View file

@ -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