1. 19 Jun, 2012 1 commit
  2. 17 Jun, 2012 1 commit
  3. 15 Mar, 2012 1 commit
    • deuce's avatar
      Make the on_exit() evals happen when the scope exits rather than when the · 385ee4e9
      deuce authored
      global object exits.
      
      This fixes a problem where the terminal server reuses the same global object
      for all JS scripts, and they uses nested exec()s.  When the innermost script
      would exit, the on_exit evals would occure in IT'S scope rather than in the
      scope it was defined in, resulting in incorrect behaviour.
      385ee4e9
  4. 07 Nov, 2011 1 commit
    • deuce's avatar
      Add exception throwing function for functions which require arguments · 8406cad5
      deuce authored
      (throws an "Error: Insufficient Arguments" exception) in js_global.c so
      all JSNative functions call call it.
      
      Also add a function which calls JS_GetContextPrivate and throws an exception
      if it returns NULL.
      
      Previously, when either of these happened, the function silently did
      nothing.
      8406cad5
  5. 02 Nov, 2011 1 commit
  6. 28 Oct, 2011 2 commits
  7. 26 Oct, 2011 1 commit
    • deuce's avatar
      "Fix" problem as a result of the change to JSVAL_IS_NUM() · b2d7cf7e
      deuce authored
      Perviously, if the argument to a number of bbs.* functions was not a valid
      number, Synchronet would silently ignore the parameter and treat it as though
      it was not specified.
      
      The new behaviour was to use the value as a number.  However, the old code
      caused the exception triggered by an inability to convert the number to
      be pending until after the return (the JS_Native didn't return JS_FALSE) so
      a try/catch block aorund it would not catch the exception.
      
      The new new behaviour is to throw the exception immediately so it can be
      caught and handled correctly.
      b2d7cf7e
  8. 25 Oct, 2011 1 commit
  9. 24 Oct, 2011 2 commits
  10. 19 Oct, 2011 1 commit
  11. 16 Oct, 2011 2 commits
  12. 13 Oct, 2011 2 commits
  13. 11 Oct, 2011 2 commits
  14. 10 Oct, 2011 1 commit
  15. 09 Oct, 2011 11 commits
  16. 08 Oct, 2011 2 commits
  17. 21 Sep, 2011 1 commit
  18. 18 Sep, 2011 2 commits
  19. 14 Sep, 2011 1 commit
  20. 10 Sep, 2011 1 commit
  21. 07 Sep, 2011 1 commit
  22. 05 Sep, 2011 1 commit
  23. 01 Sep, 2011 1 commit