Prohibit from eliminating non-local temporary variables
This commit is contained in:
+2
-2
@@ -10,10 +10,10 @@ function test(n) {
|
||||
}
|
||||
|
||||
function box() {
|
||||
var result = test(20)
|
||||
var result = test(20);
|
||||
if (result != 20) return "fail1: " + result;
|
||||
|
||||
result = test(-20)
|
||||
result = test(-20);
|
||||
if (result != 20) return "fail2: " + result;
|
||||
|
||||
return "OK"
|
||||
|
||||
Reference in New Issue
Block a user