Changeset 248320 in webkit
- Timestamp:
- Aug 6, 2019, 3:20:31 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r248304 r248320 1 2019-08-06 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: allow comments in protocol JSON 4 https://bugs.webkit.org/show_bug.cgi?id=200104 5 6 Reviewed by Brian Burg. 7 8 * inspector/scripts/generate-inspector-protocol-bindings.py: 9 (generate_from_specification.load_specification): 10 11 * inspector/scripts/tests/generic/should-strip-comments.json: Added. 12 * inspector/scripts/tests/generic/expected/should-strip-comments.json-result: Added. 13 1 14 2019-08-06 Per Arne Vollan <pvollan@apple.com> 2 15 -
trunk/Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py
r236321 r248320 125 125 try: 126 126 with open(filepath, "r") as input_file: 127 parsed_json = json.load (input_file)127 parsed_json = json.loads(re.sub(r"/\*.+?\*/", "", input_file.read())) 128 128 protocol.parse_specification(parsed_json, isSupplemental) 129 129 except ValueError as e:
Note:
See TracChangeset
for help on using the changeset viewer.