Skip to content

Commit

Permalink
skip on dynamic import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alshdavid committed Apr 11, 2024
1 parent 84ea021 commit 43c5216
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,18 @@ impl<'a> Fold for JavaScriptRuntime<'a> {
.mach_require(&asset_id, &bundle_ids, None);

let Stmt::Expr(import_stmt) = import_stmt else {
panic!("");
// TODO fix dynamic imports
return call_expr;
};

let Expr::Await(import_stmt) = *import_stmt.expr else {
panic!()
// TODO fix dynamic imports
return call_expr;
};

let Expr::Call(result) = *import_stmt.arg else {
panic!()
// TODO fix dynamic imports
return call_expr;
};

return result;
Expand Down

0 comments on commit 43c5216

Please sign in to comment.