swc/tests/tsc-references/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS2/input.ts/es5.2.minified/output.js

19 lines
541 B
JavaScript

var globalCounter = 0;
function foo() {
return globalCounter += 1, {
0: 2
};
}
var ref = foo()[0];
foo()[0] = Math.pow(ref, foo()[0]);
var ref1 = foo()[0];
foo()[0] = Math.pow(ref1, foo()[0]);
var ref2 = foo()[0], ref3 = foo()[0];
foo()[0] = Math.pow(ref3, foo()[0] = Math.pow(ref2, 2));
var ref4 = foo()[0], ref5 = foo()[0];
foo()[0] = Math.pow(ref5, foo()[0] = Math.pow(ref4, 2));
var ref6 = foo()[0];
foo()[0] = Math.pow(ref6, Math.pow(foo()[0], 2));
var ref7 = foo()[0];
foo()[0] = Math.pow(ref7, Math.pow(foo()[0], 2));