fix(javascript): retain destructured intrinsic writes

Share one pattern-target walker across lexical definitions, member mutation
tracking and Electron identity writes. Keep overwritten globals unresolved
without treating property keys or shadowed locals as global replacements.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
This commit is contained in:
N0zoM1z0
2026-10-11 14:43:17 +00:00
co-authored by factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Kaoru0822
parent ced8778094
commit 824728d7ee
7 changed files with 88 additions and 51 deletions
+3 -1
View File
@@ -330,7 +330,9 @@ helper simply returns its module parameter. Recognition uses structure rather
than emitted names; other helper bodies and ambiguous runtime fallbacks remain
unresolved. Captured function identities survive later global-property
replacement. Visible intrinsic writes before capture or conversion are checked
in their owning callable scope. Arbitrary cross-call side effects are not
in their owning callable scope, including identifier leaves in nested/default/rest
destructuring and loop targets. Property keys and shadowed local bindings do not
overwrite the global intrinsic identity. Arbitrary cross-call side effects are not
evaluated. Other reassignments, dynamic selections, and visibly overwritten
namespace members are unresolved.
Direct and destructuring assignment, loop, update, and delete targets are checked