{"version":"2.1.334","anchor":"repl-script-checks-may-use-before-declaration-and-block-fun","canonical_anchor":"repl-script-checks-may-use-before-declaration-and-block-fun","heading":"REPL script checks now track more cases before running a script","tier":"internal","area":"REPL","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/repl-script-checks-may-use-before-declaration-and-block-fun","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### REPL script checks now track more cases before running a script\n\nChecks on scripts run in the REPL now track assignments, `__proto__` and `super` calls, and warn that a function may not be available\n\n**What**\n\nClaude Code checks a script before running it in its REPL, an interactive mode that runs code line by line. One warning used to say the REPL \"would not\" give a script a function it uses before declaring it. It now says the REPL \"may not\". The checks now also follow assignments to variables and handle the special `__proto__` property and `super` calls.\n\n**Why**\n\nScripts should be rejected more accurately, with fewer refusals of code that would have worked.\n\n- Area: REPL\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}