Commits on Mar 4, 2008
  1. @matthewd

    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
    matthewd committed Feb 27, 2008
  2. @matthewd

    Convert Ruby Array instances to JavaScript Arrays.

    git-svn-id: svn+ssh://neo/SVN/MVI/CodeLibrary/ruby-mozjs/trunk@992 5d1ca2fa-b640-321b-a546-b60e1d359bbd
    matthewd committed Feb 26, 2008
  3. @matthewd

    Make convert_prim handle arrays.

    git-svn-id: svn+ssh://neo/SVN/MVI/CodeLibrary/ruby-mozjs/trunk@988 5d1ca2fa-b640-321b-a546-b60e1d359bbd
    matthewd committed Feb 21, 2008
  4. @matthewd

    Improve some logging, and enable some more JSOPTIONs.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@39 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  5. @matthewd

    Natively convert Ruby Time and Date (and, through inheritance, DateTime)

    instances to JS Date instances.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@38 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  6. @matthewd

    Don't force all JS-originated exceptions to be JSObjects... we only care

    that it's an object before we check whether it's a container for a Ruby
    exception.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@37 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  7. @matthewd

    Prevent ugly failures when DEBUG is undefined (rather than set to a

    false value) on Win32.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@36 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  8. @matthewd

    Changed the library search order to make my machine happy... though I'm

    not sure why it helps.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@35 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  9. @matthewd

    Do some gymnastics to help a Ruby process reconstruct a useful

    cross-language backtrace on exceptions.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@34 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  10. @matthewd

    Shuffle a couple of functions.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@33 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  11. @matthewd

    Split out Context#flush, which resets the contents of the JS global

    object. Also added a Context#shutdown, which can be used for more
    deliberate control of Context destruction... though calling anything on
    a Context after #shutdown will cause Undefined Behaviour -- aka, a
    segfault. ;)
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@32 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  12. @matthewd

    Tweaked function call behaviour (RTEST on respond_to? result), and

    rearranged EvalError construction.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@31 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  13. @matthewd

    Convert appropriately-ranged Fixnum values to JS integers, falling back

    to floats only when that fails.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@30 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  14. @matthewd

    Set the 'name' property on global functions defined in the JS runtime.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@29 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  15. @matthewd

    Tidied up a bunch of error messages.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@28 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  16. @matthewd

    * Add JSCLASS_GLOBAL_FLAGS to the global object, when available.

    * Add a default toString method to JS objects representing Ruby
      objects.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@27 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  17. @matthewd

    Defer creation of a new object until after we've determined that the

    given JS object is not already available to Ruby. Also, track jsval for
    Ruby objects in JavaScript, and de-root them as appropriate.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@26 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  18. @matthewd

    Add a trace() macro, to save commenting/uncommenting of the printf

    statements when trying to track down segfaults.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@25 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  19. @matthewd

    Corrected typo in constant name.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@24 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jan 20, 2008
  20. @matthewd

    If available, ensure JSOPTION_DONT_REPORT_UNCAUGHT is set, so we can

    catch JavaScript exceptions that are thrown out of the top JS scope.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@23 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Aug 8, 2007
  21. @matthewd

    Be somewhat more paranoid about the type of the jsval we're given in a

    few places, and use JS_ValueToString instead of just assuming we've been
    given a string... otherwise, Bad Things can happen.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@22 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Aug 8, 2007
  22. @matthewd

    More attempts to get exception handling to behave as I want it to, and

    to try to avoid segfaults.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@21 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 28, 2007
  23. @matthewd

    A partially failed attempt to get cross-compiliation for Win32 working,

    along with some tweaks to get library detection to do the Right Thing on
    my Windows box... though I doubt it's the correct approach for all
    circumstances.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@20 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 28, 2007
  24. @matthewd

    Correctly set NEED_SMJS_PREFIX / NEED_MOZJS_PREFIX as appropriate.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@18 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 28, 2007
  25. @matthewd

    Improved (fixed?) "zero-arg-call" logic.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@17 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 28, 2007
  26. @matthewd

    Fixed WIN32-specific JS_malloc()/JS_free() calls.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@16 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 28, 2007
  27. @matthewd

    Allow use of mozjs/ instead of smjs/.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@15 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 24, 2007
  28. @matthewd

    Provide direct access to the underlying JavaScript exception object.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@14 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 24, 2007
  29. @matthewd

    Support optional filename and lineno arguments on the source evaluation

    methods.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@13 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 24, 2007
  30. @matthewd

    Made a few changes to get building to work under cl.exe.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@12 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 24, 2007
  31. @matthewd
  32. @matthewd

    We don't seem to get a report if we raise a JS exception ourselves, so

    we note it in last_exception as we do so.
    
    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@10 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 24, 2007
  33. @matthewd

    Some changes to JS-to-Ruby function call and object access behaviour.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@9 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 24, 2007
  34. @matthewd

    Added some Google-powered translations of Japanese comments.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@8 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 24, 2007
  35. @matthewd

    Search for "mozjs" as well as "smjs" in extconf.

    git-svn-id: http://svn.trebex.net/ruby-mozjs/trunk@7 7c12266a-ce7f-4c75-ba13-b6572e791f1f
    matthewd committed Jul 24, 2007