magic/npm/examples
Enno Schnackenberg 50320a055a npm: surface readable diagnostics on WASM test failures
The example/suite runners discarded e.stack via console.error(e.message ?? e),
hiding the wasm-function offsets that emsymbolizer needs to map an abort back
to C source. A failing test only printed a terse message like "memory access
out of bounds" with no trace.

- Add reportError() to helpers.js/helpers-tcl.js; print the full stack
  (falling back to the message).
- Wrap command execution in runScript() to name the command that aborted
  before the error propagates.
- Use reportError() in all standalone runners and in all.js/all-tcl.js
  (full stack to stderr, one-line PASS/FAIL summary kept; tests still run
  independently).
- build.sh: run the --test step in a subshell so its cd does not leak into
  the --pack step.
2026-06-09 16:07:53 -04:00
..
all-tcl.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
all.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
cif-tcl.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
cif-tcl.tcl refactor(tcl-examples): rename TCL scripts, drop dead pcell.tcl, fix comments and naming 2026-06-09 16:07:53 -04:00
cif.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
cif.tcl Add npm package and CI workflows 2026-05-11 14:20:47 -04:00
drc-tcl.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
drc-tcl.tcl refactor(tcl-examples): rename TCL scripts, drop dead pcell.tcl, fix comments and naming 2026-06-09 16:07:53 -04:00
drc.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
drc.tcl Add npm package and CI workflows 2026-05-11 14:20:47 -04:00
example.js Add npm package and CI workflows 2026-05-11 14:20:47 -04:00
extract-tcl.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
extract-tcl.tcl refactor(tcl-examples): rename TCL scripts, drop dead pcell.tcl, fix comments and naming 2026-06-09 16:07:53 -04:00
extract.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
extract.tcl Update extract.tcl 2026-05-11 14:20:47 -04:00
gds-tcl.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
gds-tcl.tcl refactor(tcl-examples): rename TCL scripts, drop dead pcell.tcl, fix comments and naming 2026-06-09 16:07:53 -04:00
gds.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
gds.tcl Add npm package and CI workflows 2026-05-11 14:20:47 -04:00
helpers-tcl.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
helpers.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
min.mag Change npm examples to scmos examples 2026-05-11 14:20:47 -04:00
pcell.js npm: surface readable diagnostics on WASM test failures 2026-06-09 16:07:53 -04:00
pcell.tcl refactor(tcl-examples): rename TCL scripts, drop dead pcell.tcl, fix comments and naming 2026-06-09 16:07:53 -04:00
smoke-tcl.mjs Add TCL-embedded WASM build variant alongside the existing non-TCL build 2026-06-09 16:07:53 -04:00