Commits on Dec 7, 2010
  1. Flush with JS_ClearScope; keep a single global object.

    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.
    committed Dec 7, 2010
Commits on Jun 1, 2010
Commits on May 14, 2010
  1. Scrap the request management stuff

    [SpiderMonkey] threading and ruby don't mix anyway.
    committed May 14, 2010
  2. Use JS_SetOperationCallback if available

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

    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.
    committed Aug 15, 2008
Commits on Jul 17, 2008
Commits on Apr 17, 2008
  1. Function#to_proc

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

    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.
    committed Apr 8, 2008
Commits on Apr 7, 2008
Commits on Apr 6, 2008
  1. Fixed a couple of bugs we introduced, including a very nasty hack.

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

    * 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
    committed Apr 6, 2008
  3. wycats: Added global Ruby-to-JS object mapping hash

    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.
    committed Apr 6, 2008
  4. wycats: Some further tidy-ups

    committed Apr 6, 2008
  5. wycats: Clean up JP comments

    committed Apr 6, 2008
Commits on Apr 2, 2008
  1. All of the work to convert the original Japanese Ruby/SM to a viable …

    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)
    wycats committed Apr 2, 2008
Commits on Mar 4, 2008
  1. Define rb_ary_size(), as I seem to have imagined it.

    git-svn-id: svn+ssh://neo/SVN/MVI/CodeLibrary/ruby-mozjs/trunk@995 5d1ca2fa-b640-321b-a546-b60e1d359bbd
    committed Feb 27, 2008