swc/tests/tsc-references/esnext/logicalAssignment/logicalAssignment7/input.ts/es5.1.normal/output.js

12 lines
422 B
JavaScript
Raw Normal View History

// @strict: true
// @target: esnext, es2020, es2015
function foo1(results, results1) {
(results || (results = results1 || (results1 = []))).push(100);
}
function foo2(results, results1) {
(results !== null && results !== void 0 ? results : results = results1 !== null && results1 !== void 0 ? results1 : results1 = []).push(100);
}
function foo3(results, results1) {
(results &&= results1 &&= []).push(100);
}