From 696bb3b02609f6121863d475ba008f192808dadd Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 9 Apr 2022 20:06:58 -0700 Subject: [PATCH] stricter boolean check --- src/js_ast.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js_ast.zig b/src/js_ast.zig index 869bf1a4df..e34b0fb189 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; } },