You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
REPLArea: what it touches
ImprovementsKind: in v2.1.334,
ImprovementsSection of the release
What
Claude Code rewrites scripts run through its REPL feature before running them. That rewriting has changed in two ways:
__replItem is now reserved. A script that contains this name anywhere, even inside a piece of text, is rejected with the message "REPL: the name __replItem is reserved, also in text. Use another name."
for...in and for...of loops that use a plain variable name now get their own handling: the loop variable is set again inside the loop body, rather than the loop being wrapped like any other loop.
Claude Code also now takes account of the in operator inside the head of a for loop when it judges how costly a script is.
Why
A REPL script that uses __replItem as a name will now stop with an error instead of running. Loops over items are also handled differently from before.