mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
💅
This commit is contained in:
@@ -1507,14 +1507,10 @@ pub const SideEffects = enum(u1) {
|
||||
pub const typeof = Expr.Data.toTypeof;
|
||||
|
||||
pub fn isPrimitiveToReorder(data: Expr.Data) bool {
|
||||
switch (data) {
|
||||
.e_null, .e_undefined, .e_string, .e_boolean, .e_number, .e_big_int => {
|
||||
return true;
|
||||
},
|
||||
else => {
|
||||
return false;
|
||||
},
|
||||
}
|
||||
return switch (data) {
|
||||
.e_null, .e_undefined, .e_string, .e_boolean, .e_number, .e_big_int => true,
|
||||
else => false,
|
||||
};
|
||||
}
|
||||
|
||||
pub fn simpifyUnusedExpr(p: anytype, expr: Expr) ?Expr {
|
||||
|
||||
Reference in New Issue
Block a user