| Index: third_party/WebKit/Source/bindings/templates/interface_base.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/templates/interface_base.cpp b/third_party/WebKit/Source/bindings/templates/interface_base.cpp
|
| index 37012d47e83c449f681821b4c02547e7e3915c54..045821245996e90090ab7285a28bc222be12954f 100644
|
| --- a/third_party/WebKit/Source/bindings/templates/interface_base.cpp
|
| +++ b/third_party/WebKit/Source/bindings/templates/interface_base.cpp
|
| @@ -346,6 +346,15 @@ static void install{{v8_class}}Template(v8::Local<v8::FunctionTemplate> function
|
| {% if has_access_check_callbacks %}
|
| instanceTemplate->SetAccessCheckCallbacks({{cpp_class}}V8Internal::namedSecurityCheck, {{cpp_class}}V8Internal::indexedSecurityCheck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperTypeInfo)));
|
| {% endif %}
|
| + {% if has_array_iterator %}
|
| + {% filter runtime_enabled('RuntimeEnabledFeatures::iterableCollectionsEnabled') %}
|
| + {% if is_global %}
|
| + instanceTemplate->Set(v8::Symbol::GetIterator(isolate), v8::Array::GetValuesIterator(isolate), v8::DontEnum);
|
| + {% else %}
|
| + prototypeTemplate->Set(v8::Symbol::GetIterator(isolate), v8::Array::GetValuesIterator(isolate), v8::DontEnum);
|
| + {% endif %}
|
| + {% endfilter %}{# runtime_enabled() #}
|
| + {% endif %}
|
| {% for attribute in attributes
|
| if attribute.runtime_enabled_function and
|
| not attribute.exposed_test %}
|
|
|