Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Weirdness with Tracemonkey

#339

This isn't a usual use-case, but it may be showing a deeper issue.

I'm trying to use RightJS with the ruby gem harmony, which proxies objects between Ruby and Javascript. I'm using it specifically to write unit tests for my javascript (it's pretty awesome - and worked beautifully with RightJS 1.5.6).

When I try to load RightJS 2.00 RC2 with Harmony like so (bear in mind you must be using Ruby 1.8.*):

require 'rubygems'
require 'harmony'

page = Harmony::Page.new
page.load('right-src.js')

I'm told that RightJS is "setting a property that has only a getter". (see this gist for full output)

Obviously I'd really like to get this fixed so I can run my tests using RightJS — I realise that's hardly at the top of your agenda, but maybe there's an underlying reason why this is cropping up?

Reported by JP · September 7th, 2010 @ 02:20 AM

State: resolved
Milestone: 2.0.0 Release
Assigned to: nobody

Activity

  1. MadRabbit
    MadRabbit
    • Milestone set to 2.0.0 Release
    • Milestone order changed from 196625 to 0

    Judging by the log it complains about some syntax issues. Could you please attach the right-src.js file which was used?

    I'll check it all tomorrow morning if you don't mind

    September 7th, 2010 @ 06:51 PM

  2. JP
    JP

    This is the file I've been testing with — it's vanilla RightJS-200-RC2 as far as I can tell. Cheers!

    September 7th, 2010 @ 07:35 PM

  3. MadRabbit
    MadRabbit

    Yes it probably is, just I did some updates recently, so just to be safe. Thanks

    September 7th, 2010 @ 07:42 PM

  4. MadRabbit
    MadRabbit
    • Tag set to core, harmony

    Okay I've made it to load up. Didn't go any further coz don't know much about harmony. Plz let me know if there will any more problems, I'll gladly fix them.

    Attaching the fresh builds though.

    September 8th, 2010 @ 09:59 AM

  5. MadRabbit
    MadRabbit
    • State changed from new to resolved

    September 8th, 2010 @ 09:59 AM

  6. JP
    JP

    Excellent, thanks so much! There's actually one more error but it appears to be on Harmony's side, so if you tried to get Harmony to work and had no luck this is why:

    On line 5474 you're trying to list all included javascripts, assuming (I presume) that 'right.js' will be one of them — it looks like when I do page.load('right.js') Harmony loads the javascript into the DOM without creating a <script …></script> element for it, as such RightJS freaks out when it tries to load the olds support.

    Full error from harmony is attached if you're interested, I'll be attempting to create a patch for harmony in the next day or two, just in case anyone else wants to use RightJS to unit test their RightJS code!

    Thanks again

    September 8th, 2010 @ 03:01 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.