mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +03:00
23 lines
391 B
TypeScript
23 lines
391 B
TypeScript
|
// @noEmit: true
|
||
|
// @checkJs: true
|
||
|
// @allowJs: true
|
||
|
// @strict: true
|
||
|
// @Filename: file1.js
|
||
|
|
||
|
// this file _should_ be a global file
|
||
|
var GlobalThing = { x: 12 };
|
||
|
|
||
|
/**
|
||
|
* @param {*} type
|
||
|
* @param {*} ctor
|
||
|
* @param {*} exports
|
||
|
*/
|
||
|
function f(type, ctor, exports) {
|
||
|
if (typeof exports !== "undefined") {
|
||
|
exports["AST_" + type] = ctor;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// @Filename: ref.js
|
||
|
GlobalThing.x
|