AntiPattern
Misplaced Execution Assumptions
misplaced-execution-assumptions
JavaScript execution and isolation assumptions fail because code paths are only parsed/compiled or run in a separate context, and browser navigation/policy (e.g., COOP/noopener, guest profiles) can null returned handles—breaking side effects and instrumentation expectations.