rubyjs / therubyrhino

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

An array nested in a hash isn't passed correctly between JRuby and JavaScript #12

Closed TonyStrauss closed 12 years ago

TonyStrauss commented 12 years ago

I've posted a canned example at: https://gist.github.com/1780772

Run test.js on the provided test_data.json

As per the output in the gist, the elements of the 'sections' array in the top-level hash are present in Ruby but not in the object passed to JavaScript.

This works fine in therubyracer (V8).

I can reproduce this with jruby 1.6.4 and 1.6.6.

kares commented 12 years ago

closed with 4d5e2d8896fac5fb371da05025f4cf7b65ec879f