diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-11-17 04:35:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 12:35:00 +0800 |
commit | 6dbacb5e3f4b3be40fab132575c2e5e3f820b32f (patch) | |
tree | c99062387272231d92dc598aeaa39fdfe9bce5aa /test/ufuzz/index.js | |
parent | e5f80afc53e7df3b0b57931a03dc3481ddd9c30e (diff) | |
download | tracifyjs-6dbacb5e3f4b3be40fab132575c2e5e3f820b32f.tar.gz tracifyjs-6dbacb5e3f4b3be40fab132575c2e5e3f820b32f.zip |
enhance `varify` (#4279)
Diffstat (limited to 'test/ufuzz/index.js')
-rw-r--r-- | test/ufuzz/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js index 1c4af3c3..70041966 100644 --- a/test/ufuzz/index.js +++ b/test/ufuzz/index.js @@ -708,7 +708,7 @@ function createStatement(recurmax, canThrow, canBreak, canContinue, cannotReturn "{var expr" + loop + " = " + createExpression(recurmax, COMMA_OK, stmtDepth, canThrow) + "; ", label.target + " for (", !/^key/.test(key) ? rng(10) ? "" : "var " : rng(10) ? "var " : rng(2) ? "let " : "const ", - rng(20) ? key : "{ length: " + key + " }", + rng(10) ? key : rng(5) ? "[ " + key + " ]" : "{ length: " + key + " }", " in expr" + loop + ") {", rng(5) > 1 ? "c = 1 + c; var " + createVarName(MANDATORY) + " = expr" + loop + "[" + key + "]; " : "", createStatement(recurmax, canThrow, canBreak, canContinue, cannotReturn, stmtDepth), |