mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +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
|