d89ce80d97
Don't eliminate temporary variable when between its usage and its definition there's assignment to a non-local variable. Fix KT-17540
11 lines
150 B
JavaScript
Vendored
11 lines
150 B
JavaScript
Vendored
var value = "OK";
|
|
|
|
function foo(newValue) {
|
|
var $tmp = value;
|
|
value = newValue;
|
|
return $tmp;
|
|
}
|
|
|
|
function box() {
|
|
return foo("fail");
|
|
} |