mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-12 22:10:01 -04:00
Merge branch 'main' of https://github.com/MercuryWorkshop/aerojet
Add Function constructor proxy
This commit is contained in:
commit
e6b237c525
1 changed files with 7 additions and 0 deletions
|
@ -68,6 +68,13 @@ impl<'a> Visit<'a> for Rewriter {
|
|||
});
|
||||
}
|
||||
|
||||
fn visit_debugger_statement(&mut self, it: &oxc_ast::ast::DebuggerStatement) {
|
||||
self.jschanges.push(JsChange::GenericChange {
|
||||
span: it.span,
|
||||
text: "".to_string(),
|
||||
});
|
||||
}
|
||||
|
||||
fn visit_import_declaration(&mut self, it: &oxc_ast::ast::ImportDeclaration<'a>) {
|
||||
let name = it.source.value.to_string();
|
||||
let text = self.rewrite_url(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue