mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
fix cfg and dataflow for logical compound assignments
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
function f() {
|
||||
let foo;
|
||||
if (bar) foo ||= [];
|
||||
if (foo);
|
||||
};
|
||||
|
||||
function g() {
|
||||
let foo;
|
||||
if (bar) foo ??= [];
|
||||
if (foo);
|
||||
};
|
||||
|
||||
function h() {
|
||||
let foo = true;
|
||||
if (bar) foo &&= false;
|
||||
if (foo);
|
||||
}
|
||||
Reference in New Issue
Block a user