File: emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (26 lines) | stat: -rw-r--r-- 1,005 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
//// [emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts]
var globalCounter = 0;
function foo() {
    globalCounter += 1;
    return { prop: 2 };
}
foo().prop **= 2;
var result0 = foo().prop **= 2;
foo().prop **= foo().prop **= 2;
var result1 = foo().prop **= foo().prop **= 2;
foo().prop **= foo().prop ** 2;
var result2 = foo().prop **= foo().prop ** 2;

//// [emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js]
var _a, _b, _c, _d, _e, _f, _g, _h;
var globalCounter = 0;
function foo() {
    globalCounter += 1;
    return { prop: 2 };
}
(_a = foo()).prop = Math.pow(_a.prop, 2);
var result0 = (_b = foo()).prop = Math.pow(_b.prop, 2);
(_d = foo()).prop = Math.pow(_d.prop, (_c = foo()).prop = Math.pow(_c.prop, 2));
var result1 = (_f = foo()).prop = Math.pow(_f.prop, (_e = foo()).prop = Math.pow(_e.prop, 2));
(_g = foo()).prop = Math.pow(_g.prop, Math.pow(foo().prop, 2));
var result2 = (_h = foo()).prop = Math.pow(_h.prop, Math.pow(foo().prop, 2));