fix cfg and dataflow for logical compound assignments

This commit is contained in:
Erik Krogh Kristensen
2021-08-10 12:17:59 +02:00
parent d658ef1dcd
commit 01a202fa10
4 changed files with 33 additions and 6 deletions

View File

@@ -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);
}