mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
walk rest of new
tree
This commit is contained in:
parent
2a9f5f371a
commit
243028483e
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ impl<'a> Visit<'a> for Rewriter {
|
||||||
// we need to rewrite `new Something` to `new (wrapfn(Something))` instead of `new wrapfn(Something)`, that's why there's weird extra code here
|
// we need to rewrite `new Something` to `new (wrapfn(Something))` instead of `new wrapfn(Something)`, that's why there's weird extra code here
|
||||||
fn visit_new_expression(&mut self, it: &oxc_ast::ast::NewExpression<'a>) {
|
fn visit_new_expression(&mut self, it: &oxc_ast::ast::NewExpression<'a>) {
|
||||||
self.walk_member_expression(&it.callee);
|
self.walk_member_expression(&it.callee);
|
||||||
|
walk::walk_arguments(self, &it.arguments);
|
||||||
}
|
}
|
||||||
fn visit_this_expression(&mut self, it: &oxc_ast::ast::ThisExpression) {
|
fn visit_this_expression(&mut self, it: &oxc_ast::ast::ThisExpression) {
|
||||||
self.jschanges.push(JsChange::GenericChange {
|
self.jschanges.push(JsChange::GenericChange {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue