@@ -2339,11 +2339,11 @@ export class GenericParser extends Tokenizer {
2339
2339
let previousAwaitLocation = this . firstAwaitLocation ;
2340
2340
this . allowYieldExpression = false ;
2341
2341
this . allowAwaitExpression = false ;
2342
- this . previousAwaitLocation = null ;
2342
+ this . firstAwaitLocation = null ;
2343
2343
let body = this . parseFunctionBody ( ) ;
2344
2344
this . allowYieldExpression = previousYield ;
2345
2345
this . allowAwaitExpression = previousAwait ;
2346
- this . previousAwaitLocation = previousAwaitLocation ;
2346
+ this . firstAwaitLocation = previousAwaitLocation ;
2347
2347
return {
2348
2348
methodOrKey : this . finishNode ( new AST . Getter ( { name, body } ) , startState ) ,
2349
2349
kind : 'method' ,
@@ -2356,13 +2356,13 @@ export class GenericParser extends Tokenizer {
2356
2356
let previousAwaitLocation = this . firstAwaitLocation ;
2357
2357
this . allowYieldExpression = false ;
2358
2358
this . allowAwaitExpression = false ;
2359
- this . previousAwaitLocation = null ;
2359
+ this . firstAwaitLocation = null ;
2360
2360
let param = this . parseBindingElement ( ) ;
2361
2361
this . expect ( TokenType . RPAREN ) ;
2362
2362
let body = this . parseFunctionBody ( ) ;
2363
2363
this . allowYieldExpression = previousYield ;
2364
2364
this . allowAwaitExpression = previousAwait ;
2365
- this . previousAwaitLocation = previousAwaitLocation ;
2365
+ this . firstAwaitLocation = previousAwaitLocation ;
2366
2366
return {
2367
2367
methodOrKey : this . finishNode ( new AST . Setter ( { name, param, body } ) , startState ) ,
2368
2368
kind : 'method' ,
@@ -2398,7 +2398,7 @@ export class GenericParser extends Tokenizer {
2398
2398
let body = this . parseFunctionBody ( ) ;
2399
2399
this . allowYieldExpression = previousYield ;
2400
2400
this . allowAwaitExpression = previousAwait ;
2401
- this . previousAwaitLocation = previousAwaitLocation ;
2401
+ this . firstAwaitLocation = previousAwaitLocation ;
2402
2402
2403
2403
return {
2404
2404
methodOrKey : this . finishNode ( new AST . Method ( { isAsync, isGenerator, name, params, body } ) , startState ) ,
0 commit comments