Files
bun.sh/test/js
Claude Bot deea9e810b fix(repl): prevent reassignment of const variables across lines
The REPL was converting all `const`/`let`/`var` declarations to `var`
for persistence across evaluations, which allowed `const` variables
to be silently reassigned. This fix preserves `const` semantics by
keeping const declarations inside the IIFE and using
Object.defineProperty with getter/setter to persist const bindings
on globalThis as non-reassignable properties.

Fixes #27485

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-26 22:08:59 +00:00
..
2024-12-12 02:07:29 -08:00