rubyjs / therubyrhino

Embed the Mozilla Rhino Javascript interpreter into Ruby
155 stars 40 forks source link

::Rhino::JSError on jruby-head returns nil for javascript_backtrace #19

Closed stereobooster closed 12 years ago

stereobooster commented 12 years ago

jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-04-15 ca158df) (OpenJDK Server VM 1.6.0_23) [linux-i386-java]

Javascript

throw 'Error: hello jruby (<eval>#1)'

Following accessors of ::Rhino::JSError return nil:

kares commented 12 years ago

thanks for the report @stereobooster maybe you could provide us with the JS snippet you were eval-ing as well, please.

stereobooster commented 12 years ago

I provided it

Javascript

throw 'Error: hello jruby (<eval>#1)'
kares commented 12 years ago

sorry about that confusion, I thought it's part of a bigger script as it did not reproduce on my side. but than I realized I'm using a very old jruby-head release. there's a fix baked on master. please note that the whole javascript_backtrace was wrong previously (even when it worked) as it was a formatted string already while it should have been an array + it's now part of the "native" backtrace as well. enjoy !

stereobooster commented 12 years ago

Thanks! Is it possible to publish new gem (with this fix) to rubygems?