diff options
author | 2021-10-06 19:29:50 -0700 | |
---|---|---|
committer | 2021-10-06 19:29:50 -0700 | |
commit | c2e9d49f69f78af13937e752958866edb819ca23 (patch) | |
tree | 9320a6a13eca4b4ee5b077816e2ad8ec8846f94b | |
parent | 38a9c92eec3b00c79f01af346712adc1046da864 (diff) | |
download | bun-c2e9d49f69f78af13937e752958866edb819ca23.tar.gz bun-c2e9d49f69f78af13937e752958866edb819ca23.tar.zst bun-c2e9d49f69f78af13937e752958866edb819ca23.zip |
oops
-rw-r--r-- | src/js_parser/js_parser.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js_parser/js_parser.zig b/src/js_parser/js_parser.zig index 3530f84a9..537cb3698 100644 --- a/src/js_parser/js_parser.zig +++ b/src/js_parser/js_parser.zig @@ -11214,10 +11214,10 @@ pub fn NewParser( const children_key = Expr{ .data = jsxChildrenKeyData, .loc = expr.loc }; // Babel defines static jsx as children.len > 1 - const is_static_jsx = last_child > 1; + const is_static_jsx = e_.children.len > 1; // if (p.options.jsx.development) { - switch (last_child) { + switch (e_.children.len) { 0 => {}, 1 => { props.append(G.Property{ |