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:
parent
741a3c269b
commit
9e4ae2e1a6
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ module Rhino
|
||||||
do_open(&block)
|
do_open(&block)
|
||||||
rescue JS::RhinoException => e
|
rescue JS::RhinoException => e
|
||||||
if code_generation_error?(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
|
self.optimization_level = -1
|
||||||
retry
|
retry
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue