Permalink
Switch branches/tags
Nothing to show
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
    matthewd committed Feb 27, 2008
  2. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. * 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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
  32. 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
  33. 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
  34. 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