Skip to content

Commit 506ddaf

Browse files
committed
JS: Add explanation for test failure
1 parent 0280221 commit 506ddaf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • javascript/ql/test/query-tests/Security/CWE-400/PrototypePollutionUtility

javascript/ql/test/query-tests/Security/CWE-400/PrototypePollutionUtility/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ function mergePlainObjectsOnly(target, source) {
354354
if (isNonArrayObject(source[key]) && key in target) {
355355
target[key] = mergePlainObjectsOnly(target[key], source[key], options);
356356
} else {
357-
target[key] = source[key]; // OK - but flagged anyway
357+
target[key] = source[key]; // OK - but flagged anyway due to imprecise barrier for captured variable
358358
}
359359
});
360360
}

0 commit comments

Comments
 (0)