diff options
author | 2022-04-09 20:06:58 -0700 | |
---|---|---|
committer | 2022-04-09 20:06:58 -0700 | |
commit | 696bb3b02609f6121863d475ba008f192808dadd (patch) | |
tree | 9957eed0a60d4abe57fd22e7a9292fe429c092df | |
parent | fb82e2bf86a13211f08b407c3ec80fc0db45a77c (diff) | |
download | bun-696bb3b02609f6121863d475ba008f192808dadd.tar.gz bun-696bb3b02609f6121863d475ba008f192808dadd.tar.zst bun-696bb3b02609f6121863d475ba008f192808dadd.zip |
stricter boolean check
-rw-r--r-- | src/js_ast.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig index 869bf1a4d..e34b0fb18 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -3388,7 +3388,7 @@ pub const Expr = struct { }, // "!!!a" => "!a" .e_unary => |un| { - if (un.op == Op.Code.un_not and isBoolean(un.value)) { + if (un.op == Op.Code.un_not and knownPrimitive(un.value) == .boolean) { return un.value; } }, |