aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-23 17:32:29 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-23 17:32:29 -0700
commitda80c3b309e30eb0654f6adfbfaf42d4a2c5dc0b (patch)
tree646afe22279d1c3431c1544743c285947e8a9863
parente8804bd80f58002acb5de1eee5ba86f27b538acf (diff)
downloadbun-da80c3b309e30eb0654f6adfbfaf42d4a2c5dc0b.tar.gz
bun-da80c3b309e30eb0654f6adfbfaf42d4a2c5dc0b.tar.zst
bun-da80c3b309e30eb0654f6adfbfaf42d4a2c5dc0b.zip
Fix a simplification bug
-rw-r--r--src/js_parser/js_parser.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_parser/js_parser.zig b/src/js_parser/js_parser.zig
index 043b11b37..8fde5fcbd 100644
--- a/src/js_parser/js_parser.zig
+++ b/src/js_parser/js_parser.zig
@@ -814,7 +814,7 @@ pub const SideEffects = enum(u2) {
// "foo() ? bar() : 2" => "foo() && bar()"
if (__if__.no.isEmpty()) {
return Expr.joinWithLeftAssociativeOp(
- .bin_logical_or,
+ .bin_logical_and,
__if__.test_,
__if__.yes,
p.allocator,