From 9e4ae2e1a631b9d6f96bfaf1c116884d52230773 Mon Sep 17 00:00:00 2001 From: kares Date: Wed, 5 Dec 2012 13:41:26 +0100 Subject: [PATCH] use Rhino.warn explicitly otherwise it's a Kernel.warn --- lib/rhino/context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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