suppress false positives for-in loops (#2080)

fixes #2079
This commit is contained in:
Alex Lam S.L
2017-06-10 13:55:17 +08:00
committed by GitHub
parent 4ad7b1dae4
commit 5ef7cb372a

View File

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