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.

John Barnette's latest activity

Sunday, April 06 2008
28 Enumerating jsland proxies is broken was updated in Johnson
  • John Barnette
    John Barnette created the ticket at 9:39 PM

    It's pretty easy to decide how proxied rubyland arrays should act when they're enumerated, but I'm really not sure about anything else.

Friday, April 04 2008
16 Regular expressions was updated in Johnson
  • John Barnette
    • Assigned user changed from John Barnette to Aaron Patterson
    • State changed from new to open
    by John Barnette at 1:37 AM
Thursday, April 03 2008
10 RubyProxy#length (and #size) Masking Problems was updated in Johnson
  • John Barnette
    • Milestone cleared.
    by John Barnette at 10:36 AM
  • John Barnette
    • State changed from new to open
    • Title changed from Proxy#length (and #size) Masking Problems to RubyProxy#length (and #size) Masking Problems
    by John Barnette at 10:35 AM

    I think this is okay for 1.0. Let's address it when something blows up. We can always provide a js property that sidesteps all of the proxy methods:

    # calls/g...
27 Defining new properties on JSland proxies is broken was updated in Johnson
  • John Barnette
    • Title changed from Defining new properties on JSland proxies to Defining new properties on JSland proxies is broken
    by John Barnette at 10:31 AM
  • John Barnette
    • State changed from new to open
    by John Barnette at 10:28 AM

    This is because the JSProxy defines property getters and setters itself, passing them all through to Ruby. What we should really do:

    Setting the foo property...

  • John Barnette
    John Barnette created the ticket at 10:21 AM

    Rubyland:

    class Foo; end
    
    ctx = Johnson::Context.new
    ctx[:foo] = Foo.new
    

    JSland:

    foo.bar = "baz!"
    
    foo.bar // => null
    
24 Proxied procs aren't getting cleaned up was updated in Johnson
  • John Barnette
    John Barnette commented at 10:14 AM

    Yeah, we should just reach in to js_FunctionClass and inject a custom finalize stub. See if it has the magical "this is a Ruby proc" marker property, and, if i...

Wednesday, April 02 2008
22 Ruby hashes in jsland was updated in Johnson
26 Allow access to constants was updated in Johnson