⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248320 in webkit


Ignore:
Timestamp:
Aug 6, 2019, 3:20:31 PM (7 years ago)
Author:
Devin Rousso
Message:

Web Inspector: allow comments in protocol JSON
https://bugs.webkit.org/show_bug.cgi?id=200104

Reviewed by Brian Burg.

  • inspector/scripts/generate-inspector-protocol-bindings.py:

(generate_from_specification.load_specification):

  • inspector/scripts/tests/generic/should-strip-comments.json: Added.
  • inspector/scripts/tests/generic/expected/should-strip-comments.json-result: Added.
Location:
trunk/Source/JavaScriptCore
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r248304 r248320  
     12019-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
    1142019-08-06  Per Arne Vollan  <pvollan@apple.com>
    215
  • trunk/Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py

    r236321 r248320  
    125125        try:
    126126            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()))
    128128                protocol.parse_specification(parsed_json, isSupplemental)
    129129        except ValueError as e:
Note: See TracChangeset for help on using the changeset viewer.