mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
c6b22c57f8
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
19 lines
234 B
JavaScript
19 lines
234 B
JavaScript
function log(x) {
|
|
console.log(x);
|
|
}
|
|
function foo() {
|
|
return log;
|
|
}
|
|
function bar() {
|
|
if (x !== (x = foo())) {
|
|
x(1);
|
|
} else {
|
|
x(2);
|
|
}
|
|
}
|
|
var x = function () {
|
|
console.log("init");
|
|
};
|
|
bar();
|
|
bar();
|