suppress false positives for-in loops (#2080)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sat, 10 Jun 2017 05:55:17 +0000 (13:55 +0800)
committerGitHub <noreply@github.com>
Sat, 10 Jun 2017 05:55:17 +0000 (13:55 +0800)
fixes #2079

test/sandbox.js

index cb1e18c..fe2e588 100644 (file)
@@ -19,7 +19,7 @@ function safe_log(arg, level) {
 
 var FUNC_TOSTRING = [
     "Function.prototype.toString = Function.prototype.valueOf = function() {",
-    "    var id = 0;",
+    "    var id = 100000;",
     "    return function() {",
     '        if (this === Array) return "[Function: Array]";',
     '        if (this === Object) return "[Function: Object]";',