Commit c7570280 authored by Ian Kilpatrick's avatar Ian Kilpatrick Committed by Commit Bot

[code-inclusion] Remove whitelist from v8_types.py & idl_definitions.py

As above - there should be no behaviour change.

Bug: 842296
Change-Id: Ie306e67fbdbdb6c5e98c4edcda9b86dd3d1e9251
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261484
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Auto-Submit: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781626}
parent e5453b7b
......@@ -331,7 +331,7 @@ class IdlInterface(object):
custom_constructor_operations = []
constructor_operations_extended_attributes = {}
def is_blacklisted_attribute_type(idl_type):
def is_invalid_attribute_type(idl_type):
return idl_type.is_callback_function or \
idl_type.is_dictionary or \
idl_type.is_record_type or \
......@@ -342,7 +342,7 @@ class IdlInterface(object):
child_class = child.GetClass()
if child_class == 'Attribute':
attr = IdlAttribute(child)
if is_blacklisted_attribute_type(attr.idl_type):
if is_invalid_attribute_type(attr.idl_type):
raise ValueError(
'Type "%s" cannot be used as an attribute.' %
attr.idl_type)
......
......@@ -85,8 +85,8 @@ ARRAY_BUFFER_AND_VIEW_TYPES = TYPED_ARRAY_TYPES.union(
'SharedArrayBuffer',
]))
# We have an unfortunate hack that treats types whose name ends with
# 'Constructor' as aliases to IDL interface object. This white list is used to
# disable the hack.
# 'Constructor' as aliases to IDL interface object. This list is used to disable
# the hack.
_CALLBACK_CONSTRUCTORS = frozenset((
'AnimatorConstructor',
'BlinkAudioWorkletProcessorConstructor',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment