File: systemObjectShorthandRename.js

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (44 lines) | stat: -rw-r--r-- 969 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//// [tests/cases/compiler/systemObjectShorthandRename.ts] ////

//// [x.ts]
export const x = 'X'
//// [index.ts]
import {x} from './x.js'

const x2 = {x}
const a = {x2}

const x3 = x
const b = {x3}

//// [x.js]
System.register([], function (exports_1, context_1) {
    "use strict";
    var x;
    var __moduleName = context_1 && context_1.id;
    return {
        setters: [],
        execute: function () {
            exports_1("x", x = 'X');
        }
    };
});
//// [index.js]
System.register(["./x.js"], function (exports_1, context_1) {
    "use strict";
    var x_js_1, x2, a, x3, b;
    var __moduleName = context_1 && context_1.id;
    return {
        setters: [
            function (x_js_1_1) {
                x_js_1 = x_js_1_1;
            }
        ],
        execute: function () {
            x2 = { x: x_js_1.x };
            a = { x2 };
            x3 = x_js_1.x;
            b = { x3 };
        }
    };
});