mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
//// [tests/cases/compiler/multipleModuleExportsAssignments.ts] ////
|
|
|
|
=== y.js ===
|
|
const x = require("./x");
|
|
>x : Symbol(x, Decl(y.js, 0, 5))
|
|
>require : Symbol(require)
|
|
>"./x" : Symbol("./x", Decl(x.js, 0, 0))
|
|
|
|
const a = x.a;
|
|
>a : Symbol(a, Decl(y.js, 1, 5))
|
|
>x.a : Symbol(a, Decl(x.js, 1, 22), Decl(x.js, 1, 22))
|
|
>x : Symbol(x, Decl(y.js, 0, 5))
|
|
>a : Symbol(a, Decl(x.js, 1, 22), Decl(x.js, 1, 22))
|
|
|
|
const b = x.b;
|
|
>b : Symbol(b, Decl(y.js, 2, 5))
|
|
>x.b : Symbol(b, Decl(x.js, 4, 22), Decl(x.js, 4, 22))
|
|
>x : Symbol(x, Decl(y.js, 0, 5))
|
|
>b : Symbol(b, Decl(x.js, 4, 22), Decl(x.js, 4, 22))
|
|
|
|
=== x.js ===
|
|
if (!!true) {
|
|
module.exports = { a: 1 };
|
|
>module.exports : Symbol(exports, Decl(x.js, 0, 0))
|
|
>module : Symbol(module, Decl(x.js, 0, 0))
|
|
>exports : Symbol(exports, Decl(x.js, 0, 0))
|
|
>a : Symbol(a, Decl(x.js, 1, 22))
|
|
}
|
|
else {
|
|
module.exports = { b: "hello" };
|
|
>module.exports : Symbol(exports, Decl(x.js, 0, 0))
|
|
>module : Symbol(module, Decl(x.js, 0, 0))
|
|
>exports : Symbol(exports, Decl(x.js, 0, 0))
|
|
>b : Symbol(b, Decl(x.js, 4, 22))
|
|
}
|