Skip to content
Snippets Groups Projects
  1. Feb 01, 2025
  2. Jan 21, 2025
  3. Jan 19, 2025
  4. Jan 18, 2025
    • Deucе's avatar
      Fix test for modified path · 8696c3cf
      Deucе authored
      8696c3cf
    • Deucе's avatar
      Fix error in detecting jsdoor. · 48b25c39
      Deucе authored
      48b25c39
    • Deucе's avatar
      Don't run test in jsdoor · 3fa9ba2d
      Deucе authored
      3fa9ba2d
    • Deucе's avatar
      Don't use const · 9e333ae1
      Deucе authored
      The behaviour is unreliable in Spidermonkey 1.8.5, and the behaviour
      will change based on JS options.
      9e333ae1
    • Rob Swindell's avatar
      Make global read(0) and readln(0) return undefined · d4d05239
      Rob Swindell authored
      This is really an error condition, so like the jsdocs say:
      return undefined upon error
      
      This how read(0) worked in sbbs, but not jsexec before that last commit,
      so now just make readln and read work like that in both sbbs and jsexec.
      d4d05239
    • Rob Swindell's avatar
      Global JS function parameter validation and updated return types · 4914fa1d
      Rob Swindell authored
      Many global functions now throw an exception when null or undefined is passed
      as a required parameter where null or undefined makes no sense.
      e.g. "Argument #1 is an unexpected 'null' or 'undefined' value"
      Example exception: is-a/has-a type functions will still return false when
      passed null or undefined.
      
      Changed global function return types:
      - write() now always returns undefined
      - printf() always returns a string, never undefined or garbage string
      - prompt() returns null (not undefined) upon no input (as documented)
      
      sbbs works more like jsexec:
      - read(0) now returns an empty string instead of undefined
      - readln(0) no longer waits for enter
      
      jsexec works more like sbbs:
      - add missing write_raw() global function, alias for write()
      
      Include expected number of argment in "Insufficient Arguments" exception
      message.
      
      Update JSDOCS for some global methods:
      - file_chmod returns boolean, not number
      - flags_str requires a minimum of one argument
      
      New tests to validate expected exceptions and return types based on usage.
      4914fa1d
  5. Jan 16, 2025
  6. Feb 16, 2024
    • Deucе's avatar
      random() has returned the same result four times in a row · a8cdf5e5
      Deucе authored
      at least three times since we enabled the test suite.  The odds
      of that happening *should* be one in a million, but NetBSD managed
      to fail this time (don't remember previous times, and not sure
      how to find them).
      
      For now, I'll just change this so there's a one in a trillion chance.
      a8cdf5e5
  7. Feb 06, 2024
Loading