From 6ae06aed9e96ae85f22b1fb70580de3265482fb2 Mon Sep 17 00:00:00 2001 From: Asger F Date: Thu, 6 Feb 2025 10:03:28 +0100 Subject: [PATCH] Update javascript/extractor/src/com/semmle/js/extractor/CFGExtractor.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../extractor/src/com/semmle/js/extractor/CFGExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/extractor/src/com/semmle/js/extractor/CFGExtractor.java b/javascript/extractor/src/com/semmle/js/extractor/CFGExtractor.java index 8f58f3a4185..72dac30c933 100644 --- a/javascript/extractor/src/com/semmle/js/extractor/CFGExtractor.java +++ b/javascript/extractor/src/com/semmle/js/extractor/CFGExtractor.java @@ -1247,7 +1247,7 @@ public class CFGExtractor { public Void visit(BlockStatement nd, SuccessorInfo i) { // Hoist function declarations in a block statement to the top of the block. // This reflects non-standard behaviour implemented by most engines. - // See also: EcmaScript "B.3.2 Block-Level Function Declarations Web Legacy Compatibility Semantics". + // See also: ECMAScript "B.3.2 Block-Level Function Declarations Web Legacy Compatibility Semantics". List hoisted = HoistedFunDecls.of(nd.getBody()); hoistedFns.addAll(hoisted); writeSuccessors(nd, visitSequence(hoisted, nd.getBody(), i.getAllSuccessors()));