diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-02-18 02:13:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-18 02:13:26 +0800 |
commit | 4a528c469c8b962912c8628fb312e772dd77fe2f (patch) | |
tree | 423712ad9437f0ae769ed571671a3ac190930a26 | |
parent | 82d1ef02422ac378a524f916d0a29b9ce35743b4 (diff) | |
download | tracifyjs-4a528c469c8b962912c8628fb312e772dd77fe2f.tar.gz tracifyjs-4a528c469c8b962912c8628fb312e772dd77fe2f.zip |
reduce false positives from `function.toString()` (#2928)
-rw-r--r-- | test/sandbox.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/sandbox.js b/test/sandbox.js index 80cbc3bf..c477a8a2 100644 --- a/test/sandbox.js +++ b/test/sandbox.js @@ -39,7 +39,11 @@ var FUNC_TOSTRING = [ " });", ] : [], [ " }", - ' return "function " + n + "() {...}";', + ' return "function " + n + "() {' + function() { + var s = "\7"; + for (var i = 10; --i >= 0;) s += s; + return s; + }() + '}";', " }", "}();", ]).join("\n"); |