diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-06-13 19:50:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-14 02:50:26 +0800 |
commit | 88850a6e05b25a4ffa66e729cca56bd15850a756 (patch) | |
tree | f8d384746596fc71176be5b958604b3a3be24677 /test/ufuzz/index.js | |
parent | 9e881407bda32aeca1d383aa4137553c88419354 (diff) | |
download | tracifyjs-88850a6e05b25a4ffa66e729cca56bd15850a756.tar.gz tracifyjs-88850a6e05b25a4ffa66e729cca56bd15850a756.zip |
enhance `evaluate` (#3995)
Diffstat (limited to 'test/ufuzz/index.js')
-rw-r--r-- | test/ufuzz/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js index 006b4ca7..1a8eaff5 100644 --- a/test/ufuzz/index.js +++ b/test/ufuzz/index.js @@ -768,6 +768,10 @@ function _createExpression(recurmax, noComma, stmtDepth, canThrow) { case p++: return createObjectLiteral(recurmax, stmtDepth, canThrow) + "." + getDotKey(); case p++: + return createValue() + " in " + createArrayLiteral(recurmax, stmtDepth, canThrow); + case p++: + return createValue() + " in " + createObjectLiteral(recurmax, stmtDepth, canThrow); + case p++: var name = getVarName(); var s = name + "[" + createExpression(recurmax, COMMA_OK, stmtDepth, canThrow) + "]"; return canThrow && rng(8) == 0 ? s : name + " && " + s; |