Skip to content
Grammar
ECMAScript
Deadline
2,000 ms
Runtime
Browser

Rename JavaScript bindings with scope awareness

Rename one lexical binding and its references after selecting its declaration location and rejecting collisions or capture risks.

Local processingNo sign-upNever executed

Input

Provide the selected declaration's one-based line and column, its current name, and a valid non-reserved destination identifier.

Local

Renamed JavaScript

Submit the example or replace it with your own input. Source is parsed but never executed.

What this tool proves

Explicit static behavior

Text replacement cannot distinguish a binding reference from a string or unrelated property key. This route operates on Babel bindings instead.

Binding-aware renaming avoids broad textual replacement

Text replacement cannot distinguish a binding reference from a string or unrelated property key. This route operates on Babel bindings instead.

A rename targets the binding declared at the selected one-based line and column. It is rejected when the destination already exists in that declaration scope or would capture a reference.

Static analysis has a deliberate safety boundary

Tool Swim parses source as standard ECMAScript inside a disposable Web Worker with a 2,000 ms deadline. It never calls eval, Function, imported modules, or user code.

Source and results stay in the current browser tab. The public tool makes no API request, stores no preset, and does not require an account or telemetry.

Primary references

Questions and answers

Related JavaScript tools