document various ECMAScript bugs (#4857)

This commit is contained in:
Alex Lam S.L
2021-04-21 01:33:54 +01:00
committed by GitHub
parent c53af3dfb1
commit c58e174647
4 changed files with 46 additions and 3 deletions

View File

@@ -777,7 +777,7 @@ unused_await: {
})();
}
expect_stdout: true
node_version: ">=12"
node_version: ">=12 <16"
}
computed_key_side_effects: {

View File

@@ -829,6 +829,18 @@ empty_for_in_prop_init: {
}
for_of: {
input: {
var a = [ "PASS", 42 ];
a.p = "FAIL";
for (a of (null, a))
console.log(a);
}
expect_exact: 'var a=["PASS",42];a.p="FAIL";for(a of(null,a))console.log(a);'
expect_stdout: true
node_version: ">=0.12"
}
for_async_of: {
input: {
var async = [ "PASS", 42 ];
async.p = "FAIL";
@@ -837,7 +849,7 @@ for_of: {
}
expect_exact: 'var async=["PASS",42];async.p="FAIL";for(async of(null,async))console.log(async);'
expect_stdout: true
node_version: ">=0.12"
node_version: ">=0.12 <16"
}
issue_3631_1: {