Merge pull request #18661 from asgerf/js/hoist-in-block

JS: Hoist function declarations to the top of a block statement
This commit is contained in:
Asger F
2025-02-06 12:38:51 +01:00
committed by GitHub
72 changed files with 159 additions and 135 deletions

View File

@@ -0,0 +1,6 @@
---
category: fix
---
* Fixed a rare issue that would occur when a function declaration inside a block statement was referenced before it was declared.
Such code is reliant on legacy web semantics, which is non-standard but nevertheless implemented by most engines.
CodeQL now takes legacy web semantics into account and resolves references to these functions correctly.