enhance booleans (#5365)

This commit is contained in:
Alex Lam S.L
2022-02-21 03:02:19 +00:00
committed by GitHub
parent d5afe16bc8
commit dd3b81dec6
6 changed files with 289 additions and 169 deletions

View File

@@ -692,7 +692,7 @@ funarg_inline: {
node_version: ">=6"
}
process_boolean_returns: {
process_returns: {
options = {
booleans: true,
}
@@ -706,9 +706,7 @@ process_boolean_returns: {
expect: {
console.log(function({ length }) {
return length ? "FAIL" : "PASS";
}(function() {
return 42;
}));
}(function() {}));
}
expect_stdout: "PASS"
node_version: ">=6"