Files
fivenode_go/capi/napi_errtest.prg
CharlesKWON 5f019e76cb feat(napi): error handling — missing member, protected write, type errors
- raiseIfErr traps the JS error sentinel (\x01FNERR:) and raises a catchable
  PRG runtime error instead of handing back undefined/{error} as data.
- __GET__/__SET__ methods: explicit data read/write with existence +
  writability (getter-only/non-writable/non-extensible) checks.
- per-VM lastErr (FN_LASTERROR) so parallel requests don't cross messages.
- capi/napi_errtest.prg exercises the 4 cases via BEGIN SEQUENCE/RECOVER USING.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 09:56:07 +09:00

1.7 KiB