Skip to content

Fix #8: Web playground is not working#9

Closed
leftibot wants to merge 1 commit intoChaiScript:masterfrom
leftibot:fix/issue-8-web-playground-is-not-working
Closed

Fix #8: Web playground is not working#9
leftibot wants to merge 1 commit intoChaiScript:masterfrom
leftibot:fix/issue-8-web-playground-is-not-working

Conversation

@leftibot
Copy link
Copy Markdown
Contributor

Automated fix by @leftibot.

What changed

Fix #8: Rebuild WASM with C++ exception support
The Emscripten build of ChaiScript was compiled without C++ exception
support (-sDISABLE_EXCEPTION_CATCHING=0). ChaiScript uses exceptions
internally during normal operations like function definition and parsing.
Without exception support, ___cxa_throw calls abort(), crashing the
playground with "Aborted(undefined)" on any script containing def.
Rebuilt the WASM artifacts with exception catching enabled, matching the
approach used by RobLoach/ChaiScript.js.
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Files

 playground/chaiscript.js   |   2 +-
 playground/chaiscript.wasm | Bin 1394027 -> 1681906 bytes
 test_playground.sh         |  57 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+), 1 deletion(-)

Closes #8

Triggered by @lefticus.

The Emscripten build of ChaiScript was compiled without C++ exception
support (-sDISABLE_EXCEPTION_CATCHING=0). ChaiScript uses exceptions
internally during normal operations like function definition and parsing.
Without exception support, ___cxa_throw calls abort(), crashing the
playground with "Aborted(undefined)" on any script containing `def`.
Rebuilt the WASM artifacts with exception catching enabled, matching the
approach used by RobLoach/ChaiScript.js.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lefticus
Copy link
Copy Markdown
Member

This was closed with #678

@lefticus lefticus closed this Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web playground is not working

2 participants