@@ -28,13 +28,6 @@ exports[`for-await-using-of-comments.js [meriyah] format 1`] = `
2828  2 |" 
2929`  ;
3030
31- exports [` for-await-using-of-comments.js [typescript] format 1`  ] =  ` 
32- "'of' expected. (1:51) 
33- > 1 | /*1*/ for /* 2 */ await /*3*/ ( /*4*/ using /*5*/ fo /*6*/ of /*7*/ of /*8*/) /*9*/; 
34-     |                                                   ^ 
35-   2 |" 
36- `  ;
37- 
3831exports [` for-await-using-of-comments.js format 1`  ] =  ` 
3932====================================options===================================== 
4033parsers: ["babel", "flow", "typescript"] 
@@ -90,10 +83,10 @@ exports[`invalid-duplicate-using-bindings.js [meriyah] format 1`] = `
9083`;  
9184
9285exports [` invalid-duplicate-using-bindings.js [typescript] format 1`  ] =  ` 
93- "Unexpected keyword or identifier . (2:3 ) 
86+ "'using' declarations must be initialized . (2:9 ) 
9487  1 | {  
9588>  2  |    using  f , f  =  foo ();
96-     |    ^  
89+     |           ^  
9790  3  |  }  
9891  4 | {  
9992  5  |    using  g  =  foo ();"  
@@ -154,13 +147,6 @@ exports[`invalid-script-top-level-using-binding.js [meriyah] format 1`] = `
154147  2 |" 
155148`  ;
156149
157- exports [` invalid-script-top-level-using-binding.js [typescript] format 1`  ] =  ` 
158- "Unexpected keyword or identifier. (1:1) 
159- > 1 | using x = bar(); 
160-     | ^ 
161-   2 |" 
162- `  ;
163- 
164150exports [` invalid-script-top-level-using-binding.js format 1`  ] =  ` 
165151====================================options===================================== 
166152parsers: ["babel", "flow", "typescript"] 
@@ -216,13 +202,14 @@ exports[`using-declarations.js [meriyah] format 1`] = `
216202`  ;
217203
218204exports [` using-declarations.js [typescript] format 1`  ] =  ` 
219- "Unexpected keyword or identifier. (2:3) 
220-   1 | {  
221- >  2  |    using  /*  1 */   a  =  foo (), /*  2 */   b  =  foo ()
222-     |    ^  
205+ "'using' declarations may not be initialized in for statement. (5:19) 
223206  3 | } 
224207  4 | 
225-   5 | for(using /* 1 */ a = foo(), /* 2 */ b = foo();;);" 
208+ > 5 | for(using /* 1 */ a = foo(), /* 2 */ b = foo();;); 
209+     |                   ^^^^^^^^^ 
210+   6 | 
211+   7 | for(using /* 1 */ foo of bar()); 
212+   8 |" 
226213`  ;
227214
228215exports [` using-declarations.js format 1`  ] =  ` 
@@ -364,15 +351,6 @@ exports[`valid-await-using-binding-basic.js [meriyah] format 1`] = `
364351  4 |" 
365352`  ;
366353
367- exports [` valid-await-using-binding-basic.js [typescript] format 1`  ] =  ` 
368- "';' expected. (2:15) 
369-   1 | async function f() {  
370- >  2  |    await  using  basic  =  getReader ();
371-     |                ^  
372-   3  |  }  
373-   4 |" 
374- `  ;
375- 
376354exports [` valid-await-using-binding-basic.js format 1`  ] =  ` 
377355====================================options===================================== 
378356parsers: ["babel", "flow", "typescript"] 
@@ -427,15 +405,6 @@ exports[`valid-await-using-binding-escaped.js [meriyah] format 1`] = `
427405  4 |" 
428406`  ;
429407
430- exports [` valid-await-using-binding-escaped.js [typescript] format 1`  ] =  ` 
431- "';' expected. (2:15) 
432-   1 | async function f() {  
433- >  2  |    await  using  \\u0061b  =  c ;
434-     |                ^  
435-   3  |  }  
436-   4 |" 
437- `  ;
438- 
439408exports [` valid-await-using-binding-escaped.js format 1`  ] =  ` 
440409====================================options===================================== 
441410parsers: ["babel", "flow", "typescript"] 
@@ -490,15 +459,6 @@ exports[`valid-await-using-binding-non-bmp.js [meriyah] format 1`] = `
490459  4 |" 
491460`  ;
492461
493- exports [` valid-await-using-binding-non-bmp.js [typescript] format 1`  ] =  ` 
494- "';' expected. (2:15) 
495-   1 | async function f() {  
496- >  2  |    await  using  𠮷 =  foo ();
497-     |                ^  
498-   3  |  }  
499-   4 |" 
500- `  ;
501- 
502462exports [` valid-await-using-binding-non-bmp.js format 1`  ] =  ` 
503463====================================options===================================== 
504464parsers: ["babel", "flow", "typescript"] 
@@ -557,16 +517,6 @@ exports[`valid-await-using-binding-using.js [meriyah] format 1`] = `
557517  5 |" 
558518`  ;
559519
560- exports [` valid-await-using-binding-using.js [typescript] format 1`  ] =  ` 
561- "';' expected. (2:15) 
562-   1 | async function f() {  
563- >  2  |    await  using  using  =  of ;
564-     |                ^  
565-   3  |    for  (await  using  using  of  of ); 
566-   4  |  }  
567-   5 |" 
568- `  ;
569- 
570520exports [` valid-await-using-binding-using.js format 1`  ] =  ` 
571521====================================options===================================== 
572522parsers: ["babel", "flow", "typescript"] 
@@ -632,14 +582,14 @@ exports[`valid-await-using-comments.js [meriyah] format 1`] = `
632582`;  
633583
634584exports [` valid-await-using-comments.js [typescript] format 1`  ] =  ` 
635- "';' expected. (3:28) 
636-   1 | async function f() {  
637-   2  |  { 
638- > 3 |   /* 0*/  await/* 1*/  using/* 2*/  b/* 3*/  =/* 4*/  f()/* 5*/  ; 
639-     |                            ^ 
585+ "'await using' declarations may not be initialized in for statement. (6:42) 
640586  4 | } 
641587  5 | {  
642-   6 |   /* 0*/  for/* 1*/  (/* 2*/ await /* 3*/ using /* 4*/ b /* 5*/ = /* 6*/ x /* 7*/  ;/* 8*/  ;/* 9*/  )/* 10*/  ;" 
588+ >  6  |    /* 0*/ for /* 1*/  (/* 2*/ await /* 3*/ using /* 4*/ b /* 5*/ = /* 6*/ x /* 7*/  ;/* 8*/  ;/* 9*/  )/* 10*/  ;
589+     |                                           ^^^^^^^^^^^^^  
590+   7  |  }  
591+   8 | {  
592+   9  |    /* 0*/ for /* 1*/  (/* 2*/ await /* 3*/ using /* 4*/ b /* 5*/ of /* 6*/ x /* 7*/  )/* 8*/  ;"  
643593`;  
644594
645595exports [` valid-await-using-comments.js format 1`  ] =  ` 
@@ -826,10 +776,10 @@ exports[`valid-for-using-declaration.js [meriyah] format 1`] = `
826776`  ;
827777
828778exports [` valid-for-using-declaration.js [typescript] format 1`  ] =  ` 
829- "';' expected . (2:20) 
779+ "'await using' declarations may not be initialized in for statement . (2:20) 
830780  1 | async function f() {  
831781>  2  |    for  (await  using  basic  =  reader ();;);
832-     |                     ^  
782+     |                     ^^^^^^^^^^^^^^^^   
833783  3  |  }  
834784  4 |" 
835785`  ;
@@ -1137,15 +1087,6 @@ exports[`valid-using-binding-basic.js [meriyah] format 1`] = `
11371087  4 |" 
11381088`  ;
11391089
1140- exports [` valid-using-binding-basic.js [typescript] format 1`  ] =  ` 
1141- "Unexpected keyword or identifier. (2:3) 
1142-   1 | {  
1143- >  2  |    using  basic  =  getReader ();
1144-     |    ^  
1145-   3  |  }  
1146-   4 |" 
1147- `  ;
1148- 
11491090exports [` valid-using-binding-basic.js format 1`  ] =  ` 
11501091====================================options===================================== 
11511092parsers: ["babel", "flow", "typescript"] 
@@ -1192,13 +1133,6 @@ exports[`valid-using-binding-escaped.js [meriyah] format 1`] = `
11921133  2 |" 
11931134`  ;
11941135
1195- exports [` valid-using-binding-escaped.js [typescript] format 1`  ] =  ` 
1196- "Unexpected keyword or identifier. (1:3) 
1197- > 1 | {  using  \\u0061b  =  c ; }  
1198-     |   ^ 
1199-   2 |" 
1200- `  ;
1201- 
12021136exports [` valid-using-binding-escaped.js format 1`  ] =  ` 
12031137====================================options===================================== 
12041138parsers: ["babel", "flow", "typescript"] 
@@ -1243,13 +1177,6 @@ exports[`valid-using-binding-non-bmp.js [meriyah] format 1`] = `
12431177  2 |" 
12441178`  ;
12451179
1246- exports [` valid-using-binding-non-bmp.js [typescript] format 1`  ] =  ` 
1247- "Unexpected keyword or identifier. (1:3) 
1248- > 1 | {  using  𠮷 =  foo (); }  
1249-     |   ^ 
1250-   2 |" 
1251- `  ;
1252- 
12531180exports [` valid-using-binding-non-bmp.js format 1`  ] =  ` 
12541181====================================options===================================== 
12551182parsers: ["babel", "flow", "typescript"] 
@@ -1306,16 +1233,6 @@ exports[`valid-using-binding-using.js [meriyah] format 1`] = `
13061233  5 |" 
13071234`  ;
13081235
1309- exports [` valid-using-binding-using.js [typescript] format 1`  ] =  ` 
1310- "Unexpected keyword or identifier. (2:3) 
1311-   1 | {  
1312- >  2  |    using  using  =  of ;
1313-     |    ^  
1314-   3  |    for  (using  using  of  of ); 
1315-   4  |  }  
1316-   5 |" 
1317- `  ;
1318- 
13191236exports [` valid-using-binding-using.js format 1`  ] =  ` 
13201237====================================options===================================== 
13211238parsers: ["babel", "flow", "typescript"] 
0 commit comments