Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Dec 7, 2010
  1. Flush with JS_ClearScope; keep a single global object.

    authored
    I'm not entirely clear on why, but this appears to avoid the problem
    with conflicting Array (etc) classes caused by replacing the global
    object on flush.
Commits on Jun 1, 2010
Commits on May 14, 2010
  1. Scrap the request management stuff

    authored
    [SpiderMonkey] threading and ruby don't mix anyway.
  2. Use JS_SetOperationCallback if available

    authored
    Newer SpiderMonkey drops support for JS_SetBranchCallback.
Commits on Aug 15, 2008
  1. Use rb_obj_id() as the key in rb2js hash.

    authored
    Hashing the real objects seems to make for unhappiness, mostly to do
    with the amount of interaction involved upon calling rb_hash_delete,
    which occurs in finalize, which is called from SpiderMonkey GC... which
    is really not a good time to be trying to call arbitrary methods back in
    JS. So, let's not do that.
    
    Also, const-ified a variable to silence a warning.
Commits on Jul 17, 2008
Commits on Apr 17, 2008
  1. @wycats

    Function#to_proc

    wycats authored
Commits on Apr 16, 2008
Commits on Apr 8, 2008
  1. Several improvements to memory management

    authored
    Increased the maximum memory allocation to 64 MB, and added calls to
    JS_MaybeGC() to places likely to gain from a GC. Also added a callback
    to run JS_MaybeGC() every 0x1000 branches.
Commits on Apr 7, 2008
Commits on Apr 6, 2008
  1. Fixed a couple of bugs we introduced, including a very nasty hack.

    authored
    Special-cased __noSuchMethod__ in the JS_DeleteProperty calls, which
    only solves the immediate problem, and isn't anything like the correct
    solution.
  2. Merge changes from wycats

    authored
    * hand-merge:
      Be careful about whether we've been given the JS type we were expecting.
      wycats: Added global Ruby-to-JS object mapping hash
      wycats: Support JS property access mapping to Object#[] / #[]=
      wycats: Some further tidy-ups
      wycats: Clean up JP comments
  3. wycats: Added global Ruby-to-JS object mapping hash

    authored
    This ensures we maintain object identity; passing the same object into
    JavaScript via two separate variables will result in both pointing at
    the same JavaScript wrapper object... which in turn means that (a == b)
    will be true.
  4. wycats: Clean up JP comments

    authored
Commits on Apr 2, 2008
  1. @wycats

    All of the work to convert the original Japanese Ruby/SM to a viable …

    wycats authored
    …version.
    
    Some of the more notable changes:
    * Support for Hashes and Arrays in JS mode
    * Support for foo in bar
    * Support for with(foo) { ... }
    * RubyObj == RubyObj
    * Interactive mode for testing things out (interactive.rb)
Commits on Mar 4, 2008
  1. Define rb_ary_size(), as I seem to have imagined it.

    authored
    git-svn-id: svn+ssh://neo/SVN/MVI/CodeLibrary/ruby-mozjs/trunk@995 5d1ca2fa-b640-321b-a546-b60e1d359bbd
Something went wrong with that request. Please try again.