Skip to main content

throw_module_not_found_expr_async

Function throw_module_not_found_expr_async 

Source
pub fn throw_module_not_found_expr_async(request: &str) -> Expr
Expand description

Creates a Promise that rejects with a “Cannot find module” error for the given request string. Use this for async contexts (dynamic imports).