@@ -177,27 +177,27 @@ assert({ type: "json" });
177177` ;
178178
179179exports [` re-export.js [acorn] format 1` ] = `
180- "Unexpected token (1:33 )
181- > 1 | export { foo2 } from "foo.json" assert { type : " json" } ;
182- | ^
180+ "Unexpected token (1:44 )
181+ > 1 | export { default as foo2 } from "foo.json" assert { type : " json" } ;
182+ | ^
183183 2 | export * from "foo.json" assert { type : " json" } ;
184184 3 | export * as foo3 from "foo.json" assert { type : " json" } ;
185185 4 |"
186186` ;
187187
188188exports [` re-export.js [espree] format 1` ] = `
189- "Unexpected token assert (1:33 )
190- > 1 | export { foo2 } from "foo.json" assert { type : " json" } ;
191- | ^
189+ "Unexpected token assert (1:44 )
190+ > 1 | export { default as foo2 } from "foo.json" assert { type : " json" } ;
191+ | ^
192192 2 | export * from "foo.json" assert { type : " json" } ;
193193 3 | export * as foo3 from "foo.json" assert { type : " json" } ;
194194 4 |"
195195` ;
196196
197197exports [` re-export.js [meriyah] format 1` ] = `
198- "Unexpected token: 'identifier' (1:38 )
199- > 1 | export { foo2 } from "foo.json" assert { type : " json" } ;
200- | ^
198+ "Unexpected token: 'identifier' (1:49 )
199+ > 1 | export { default as foo2 } from "foo.json" assert { type : " json" } ;
200+ | ^
201201 2 | export * from "foo.json" assert { type : " json" } ;
202202 3 | export * as foo3 from "foo.json" assert { type : " json" } ;
203203 4 |"
@@ -209,12 +209,12 @@ parsers: ["babel", "typescript"]
209209printWidth: 80
210210 | printWidth
211211=====================================input======================================
212- export { foo2 } from "foo.json" assert { type : " json" } ;
212+ export { default as foo2 } from "foo.json" assert { type : " json" } ;
213213export * from "foo.json" assert { type : " json" } ;
214214export * as foo3 from "foo.json" assert { type : " json" } ;
215215
216216=====================================output=====================================
217- export { foo2 } from "foo.json" assert { type : " json" } ;
217+ export { default as foo2 } from "foo.json" assert { type : " json" } ;
218218export * from "foo.json" assert { type : " json" } ;
219219export * as foo3 from "foo.json" assert { type : " json" } ;
220220
0 commit comments