#339 ✓resolved
JP

Weirdness with Tracemonkey

Reported by JP | September 7th, 2010 @ 02:20 AM | in 2.0.0 Release

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?

Comments and changes to this ticket

  • MadRabbit

    MadRabbit September 7th, 2010 @ 06:51 PM

    • 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

  • JP

    JP September 7th, 2010 @ 07:35 PM

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

  • MadRabbit

    MadRabbit September 7th, 2010 @ 07:42 PM

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

  • MadRabbit

    MadRabbit September 8th, 2010 @ 09:59 AM

    • 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.

  • MadRabbit

    MadRabbit September 8th, 2010 @ 09:59 AM

    • State changed from “new” to “resolved”
  • JP

    JP September 8th, 2010 @ 03:01 PM

    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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RightJS Core Tickets

Shared Ticket Bins

People watching this ticket

Attachments

Tags

Pages