Forum: Ruby Getting an error in Johnson's env.js

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Vikas M. (Guest)
on 2009-05-05 10:29
Hi,
I am trying to use Johnson gem to run javascript without a browser. But
the env.js gives me an exception which looks like this

/var/lib/gems/1.8/gems/johnson-1.1.0/lib/johnson/spidermonkey/runtime.rb:58:in
`native_compile': illegal character at (none):12 (Johnson::Error)
from
/var/lib/gems/1.8/gems/johnson-1.1.0/lib/johnson/spidermonkey/runtime.rb:58:in
`compile'
from
/var/lib/gems/1.8/gems/johnson-1.1.0/lib/johnson/spidermonkey/runtime.rb:42:in
`evaluate'
from /var/lib/gems/1.8/gems/johnson-1.1.0/lib/johnson/runtime.rb:21:in
`evaluate'
from test1.rb:802
from
/var/lib/gems/1.8/gems/nokogiri-1.2.3/lib/nokogiri/xml/node_set.rb:140:in
`each'
from
/var/lib/gems/1.8/gems/nokogiri-1.2.3/lib/nokogiri/xml/node_set.rb:139:in
`upto'
from
/var/lib/gems/1.8/gems/nokogiri-1.2.3/lib/nokogiri/xml/node_set.rb:139:in
`each'
from /var/lib/gems/1.8/gems/taka-0.0.1/lib/taka/dom/node_list.rb:9:in
`send'
from /var/lib/gems/1.8/gems/taka-0.0.1/lib/taka/dom/node_list.rb:9:in
`method_missing'
from test1.rb:800

Any idea on whats wrong here?
This topic is locked and can not be replied to.