mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
12 lines
422 B
JavaScript
12 lines
422 B
JavaScript
|
// @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);
|
||
|
}
|