Skip to content

Commit

Permalink
Skip reference effects when meta-property is not guaranteed to be imm…
Browse files Browse the repository at this point in the history
…utable
  • Loading branch information
nikeee committed Jun 8, 2024
1 parent 713b81c commit 3e3b017
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,18 @@ function inferBlock(
};
break;
}
case "MetaProperty":
case "MetaProperty": {
if (instrValue.meta !== "import" || instrValue.property !== "meta") {
continue;
}

valueKind = {
kind: ValueKind.Global,
reason: new Set([ValueReason.Global]),
context: new Set(),
};
break;
}
case "LoadGlobal":
valueKind = {
kind: ValueKind.Global,
Expand Down

0 comments on commit 3e3b017

Please sign in to comment.