diff options
Diffstat (limited to 'deps/v8/third_party/inspector_protocol/check_protocol_compatibility.py')
-rwxr-xr-x | deps/v8/third_party/inspector_protocol/check_protocol_compatibility.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/third_party/inspector_protocol/check_protocol_compatibility.py b/deps/v8/third_party/inspector_protocol/check_protocol_compatibility.py index 7e7d9af3d6..e23bd70213 100755 --- a/deps/v8/third_party/inspector_protocol/check_protocol_compatibility.py +++ b/deps/v8/third_party/inspector_protocol/check_protocol_compatibility.py @@ -168,6 +168,11 @@ def compare_types(context, kind, type_1, type_2, types_map_1, types_map_2, depth base_type_1 = type_1["type"] base_type_2 = type_2["type"] + # Binary and string have the same wire representation in JSON. + if ((base_type_1 == "string" and base_type_2 == "binary") or + (base_type_2 == "string" and base_type_1 == "binary")): + return + if base_type_1 != base_type_2: errors.append("%s: %s base type mismatch, '%s' vs '%s'" % (context, kind, base_type_1, base_type_2)) elif base_type_1 == "object": |