leftibot 34a95a28a0 Address review: snapshot top-level locals alongside engine state
ChaiScript::State captures globals, functions, and types but not the
top-level scripting locals created by `var x = ...`. The previous
restoreState therefore left such variables behind, breaking the
playground reset use case and tripping the new test's assertion in
Debug builds (where assert is enabled). Pair get_state with get_locals
in the snapshot so a restore brings back a clean baseline.

Requested by @lefticus in PR #699 review.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 17:03:00 -06:00
..
chaiscript_em.cpp Fix #693: Add Emscripten/embind bindings for get_state/set_state 2026-04-30 15:48:46 -06:00
chaiscript_eval.hpp Address review: snapshot top-level locals alongside engine state 2026-04-30 17:03:00 -06:00
chaiscript.html Fix #472: Emscripten Frontend (#662) 2026-04-11 15:58:28 -06:00
CMakeLists.txt Fix #678: Add WASM exception support to Emscripten build (#689) 2026-04-13 22:40:26 -06:00