File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1425,7 +1425,7 @@ class Parser extends Tapable {
1425
1425
walkNewExpression ( expression ) {
1426
1426
const callee = this . evaluateExpression ( expression . callee ) ;
1427
1427
if ( callee . isIdentifier ( ) ) {
1428
- const hook = this . hooks . new . for ( callee . identifier ) ;
1428
+ const hook = this . hooks . new . get ( callee . identifier ) ;
1429
1429
if ( hook !== undefined ) {
1430
1430
const result = hook . call ( expression ) ;
1431
1431
if ( result === true ) {
@@ -1566,7 +1566,7 @@ class Parser extends Tapable {
1566
1566
1567
1567
walkIdentifier ( expression ) {
1568
1568
if ( ! this . scope . definitions . has ( expression . name ) ) {
1569
- const hook = this . hooks . expression . for ( this . scope . renames . get ( expression . name ) || expression . name ) ;
1569
+ const hook = this . hooks . expression . get ( this . scope . renames . get ( expression . name ) || expression . name ) ;
1570
1570
if ( hook !== undefined ) {
1571
1571
const result = hook . call ( expression ) ;
1572
1572
if ( result === true )
You can’t perform that action at this time.
0 commit comments