|
| 1 | +=== tests/cases/conformance/salsa/main.js === |
| 2 | +const { hardline } = require('./second').nested; |
| 3 | +>hardline : Symbol(hardline, Decl(main.js, 0, 7)) |
| 4 | +>require('./second').nested : Symbol(nested, Decl(second.js, 0, 18)) |
| 5 | +>require : Symbol(require) |
| 6 | +>'./second' : Symbol("tests/cases/conformance/salsa/second", Decl(second.js, 0, 0)) |
| 7 | +>nested : Symbol(nested, Decl(second.js, 0, 18)) |
| 8 | + |
| 9 | +hardline |
| 10 | +>hardline : Symbol(hardline, Decl(main.js, 0, 7)) |
| 11 | + |
| 12 | +=== tests/cases/conformance/salsa/first.js === |
| 13 | +// #41422, based on prettier's exports |
| 14 | + |
| 15 | +const hardline = { type: "hard" } |
| 16 | +>hardline : Symbol(hardline, Decl(first.js, 2, 5)) |
| 17 | +>type : Symbol(type, Decl(first.js, 2, 18)) |
| 18 | + |
| 19 | +module.exports = { |
| 20 | +>module.exports : Symbol("tests/cases/conformance/salsa/first", Decl(first.js, 0, 0)) |
| 21 | +>module : Symbol(module, Decl(first.js, 2, 33)) |
| 22 | +>exports : Symbol("tests/cases/conformance/salsa/first", Decl(first.js, 0, 0)) |
| 23 | + |
| 24 | + hardline |
| 25 | +>hardline : Symbol(hardline, Decl(first.js, 3, 18)) |
| 26 | +} |
| 27 | + |
| 28 | + |
| 29 | +=== tests/cases/conformance/salsa/second.js === |
| 30 | +module.exports = { |
| 31 | +>module.exports : Symbol("tests/cases/conformance/salsa/second", Decl(second.js, 0, 0)) |
| 32 | +>module : Symbol(export=, Decl(second.js, 0, 0)) |
| 33 | +>exports : Symbol(export=, Decl(second.js, 0, 0)) |
| 34 | + |
| 35 | + nested: require('./first') |
| 36 | +>nested : Symbol(nested, Decl(second.js, 0, 18)) |
| 37 | +>require : Symbol(require) |
| 38 | +>'./first' : Symbol("tests/cases/conformance/salsa/first", Decl(first.js, 0, 0)) |
| 39 | + |
| 40 | +}; |
| 41 | + |
0 commit comments