Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(919)

Unified Diff: third_party/WebKit/Source/devtools/scripts/check_injected_script_source.py

Issue 2235703003: [DevTools] Remove Map usage from InjectedScriptSource.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/scripts/check_injected_script_source.py
diff --git a/third_party/WebKit/Source/devtools/scripts/check_injected_script_source.py b/third_party/WebKit/Source/devtools/scripts/check_injected_script_source.py
index c3da9aac714487ce9e5a65488afd31ef65d1acae..9a220bca1772eafea4c228587e22b2158e09047e 100755
--- a/third_party/WebKit/Source/devtools/scripts/check_injected_script_source.py
+++ b/third_party/WebKit/Source/devtools/scripts/check_injected_script_source.py
@@ -49,7 +49,7 @@ def validate_injected_script(fileName):
global_functions = "|".join([
"eval", "uneval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent",
- "encodeURI", "encodeURIComponent", "escape", "unescape",
+ "encodeURI", "encodeURIComponent", "escape", "unescape", "Map", "Set"
])
# Black list:
@@ -63,7 +63,7 @@ def validate_injected_script(fileName):
errors_found = False
for i, line in enumerate(lines):
- if line.find("suppressBlacklist"):
+ if line.find("suppressBlacklist") != -1:
continue
for match in re.finditer(black_list_call_regex, line):
errors_found = True
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698