enhance unused

This commit is contained in:
alexlamsl
2020-09-22 07:48:55 +08:00
parent 0e3da27727
commit 8c670cae93
3 changed files with 12 additions and 7 deletions

View File

@@ -2676,7 +2676,7 @@ cross_references_3: {
};
return Math.square(n) + Math.cube(n);
};
}(Math)(2));
}()(2));
console.log(Math.square(3), Math.cube(3));
}
expect_stdout: [

View File

@@ -2415,7 +2415,7 @@ redefine_farg_2: {
console.log(typeof [], "number",function(a, b) {
a = b;
return typeof a;
}([]));
}());
}
expect_stdout: "object number undefined"
}