diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-11 21:19:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-12 05:19:56 +0800 |
commit | 2123f38394d4c98fcb4acdc0378ffd86fd9bec9a (patch) | |
tree | 2bf77252c21352923199418fba5245deebce0042 /test/ufuzz/index.js | |
parent | 58dff9ada3adf21dbe7d8d205e76cfbd48b8619a (diff) | |
download | tracifyjs-2123f38394d4c98fcb4acdc0378ffd86fd9bec9a.tar.gz tracifyjs-2123f38394d4c98fcb4acdc0378ffd86fd9bec9a.zip |
fix asynchronous state tracking in `ufuzz` (#4369)
Diffstat (limited to 'test/ufuzz/index.js')
-rw-r--r-- | test/ufuzz/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js index 93d46187..0b16a590 100644 --- a/test/ufuzz/index.js +++ b/test/ufuzz/index.js @@ -516,10 +516,13 @@ function createAssignmentPairs(recurmax, noComma, stmtDepth, canThrow, varNames, var key = index in keys ? keys[index] : rng(10) && createKey(recurmax, keys); return key ? key + ": " + name : name; }).join(", ")) + " }"); + var save_async = async; + if (was_async != null) async = was_async; values.unshift("{ " + addTrailingComma(pairs.values.map(function(value, index) { var key = index in keys ? keys[index] : createKey(recurmax, keys); return key + ": " + value; }).join(", ")) + " }"); + async = save_async; } break; default: |