From 5dd87e379b2d25b9402e689f64c073409dc90222 Mon Sep 17 00:00:00 2001 From: Asger F Date: Thu, 16 Oct 2025 12:22:18 +0200 Subject: [PATCH] JS: Add overlay[local] to restore magic in unwrap() predicate In this case we actually want magic to apply, but was prevented by locality. --- javascript/ql/lib/LanguageFeatures/UnusedIndexVariable.qll | 2 ++ 1 file changed, 2 insertions(+) diff --git a/javascript/ql/lib/LanguageFeatures/UnusedIndexVariable.qll b/javascript/ql/lib/LanguageFeatures/UnusedIndexVariable.qll index ed53158d51c..e8b235eca9b 100644 --- a/javascript/ql/lib/LanguageFeatures/UnusedIndexVariable.qll +++ b/javascript/ql/lib/LanguageFeatures/UnusedIndexVariable.qll @@ -1,6 +1,8 @@ /** * Provides a predicate for identifying unused index variables in loops. */ +overlay[local] +module; import javascript