diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-03-15 13:54:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 21:54:05 +0800 |
commit | 176581d732276df1578f1eb98e722ec3b5f52bbd (patch) | |
tree | fa2fb71cdfb7135469c3750a548f117ac3164820 /test/ufuzz/index.js | |
parent | 01aa078e9cae82e16aa1faad092dbd4fbce895e2 (diff) | |
download | tracifyjs-176581d732276df1578f1eb98e722ec3b5f52bbd.tar.gz tracifyjs-176581d732276df1578f1eb98e722ec3b5f52bbd.zip |
fix corner cases with template literals (#4780)
Diffstat (limited to 'test/ufuzz/index.js')
-rw-r--r-- | test/ufuzz/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js index c90eb553..c5a2e75d 100644 --- a/test/ufuzz/index.js +++ b/test/ufuzz/index.js @@ -1493,7 +1493,9 @@ function _createExpression(recurmax, noComma, stmtDepth, canThrow) { case p++: var name = getVarName(); var fn = name + "." + getDotKey(); - var s = "typeof " + fn + ' == "function" && --_calls_ >= 0 && ' + fn + createArgs(recurmax, stmtDepth, canThrow); + var s = "typeof " + fn + ' == "function" && --_calls_ >= 0 && '; + s += rng(5) ? fn : "(" + createExpression(recurmax, NO_COMMA, stmtDepth, canThrow) + ", " + fn + ")"; + s += createArgs(recurmax, stmtDepth, canThrow); return mayDefer(canThrow && rng(20) == 0 ? s : name + " && " + s); case p++: if (SUPPORT.class) { |