Pop-Up Thingie

The Gate BBS
  • Home
  • Forum
  • Files
  • Register
  • Log in

  1. Forum
  2. FidoNet
  3. SYNC SYSOPS
  • Global JS function parameter validation and updated return types

    From Deucе@1:103/705 to GitLab note in main/sbbs on Saturday, January 18, 2025 06:02:44
    https://gitlab.synchro.net/main/sbbs/-/commit/4914fa1d793e33bd0027b3f82196814c16881bdd#note_6277

    It's not clear what the meaning of this array is compared to a value of 0 in func_list, but it's obvious they do different things.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Saturday, January 18, 2025 11:14:20
    https://gitlab.synchro.net/main/sbbs/-/commit/4914fa1d793e33bd0027b3f82196814c16881bdd#note_6278

    If a function exists in `func_list` with a value of 0, then it is expected to be callable with `null` or `undefined` as the first argument //without// throwing an exception.

    If a function exists in `noargs_required` then it is expected to be callable with **no** arguments without throwing an exception.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Saturday, January 18, 2025 18:26:03
    https://gitlab.synchro.net/main/sbbs/-/commit/4914fa1d793e33bd0027b3f82196814c16881bdd#note_6279

    I guess the comment is wrong then?
    `// Value (e.g. 0, 1) is number of non-null/undefined args required`
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Saturday, January 18, 2025 19:50:00
    https://gitlab.synchro.net/main/sbbs/-/commit/4914fa1d793e33bd0027b3f82196814c16881bdd#note_6280

    How is that wrong? If the element value is 0, then a caller can call the function with a (single) null/undefined argument. If it's 1, they can't (it'll throw an exception).

    Calling with a null/undefined argument is different than calling with no arguments.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Sunday, January 19, 2025 10:28:23
    https://gitlab.synchro.net/main/sbbs/-/commit/4914fa1d793e33bd0027b3f82196814c16881bdd#note_6281

    It translates to "Zero is the number of non-null/undefined args required." Which does not translate to "One is the number of null/undefined args allowed." --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • Who's Online

  • Recent Visitors

    • Yer Lee
      Friday, November 13, 2026 13:59:18
      from Manitowoc, Wi via Telnet
    • Carmella Palladini
      Friday, November 13, 2026 13:56:41
      from Rio Grande, Nj via Telnet
    • Don Robinson
      Friday, November 13, 2026 13:53:48
      from New Braunfels, Tx via Telnet
    • N3OWM
      Friday, November 13, 2026 07:51:49
      from Pennsauken, NJ via Telnet
    • Sherry Brooks
      Friday, November 13, 2026 06:58:49
      from Cantralia, Il via Telnet
    • Peter Mills
      Friday, November 13, 2026 06:56:27
      from Las Cruces, Nm via Telnet
    • Michelle Andrea
      Friday, November 13, 2026 06:51:36
      from Calera, Al via Telnet
    • Dr. What
      Friday, November 13, 2026 06:32:15
      from Rockford, MI via Telnet
    • Setsuna Seisei
      Friday, November 13, 2026 05:37:33
      from Clermont, Fl via Telnet
    • N4CLY
      Thursday, November 12, 2026 21:14:52
      from Polkville, NC via Telnet
  • System Info

    Sysop: Gate Keeper
    Location: Shelby, NC
    Users: 1,105
    Nodes: 20 (0 / 20)
    Uptime: 497255:57:11
    Calls: 16,507
    Calls today: 9
    Files: 5,713
    D/L today: 1 files
    (8,192P bytes)
    Messages: 696,457

© The Gate BBS, 2026