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 3ee994a8caa6bdec749b5ef1dc064f0cb06b8071..1ab63c2258c159c836a5abc2f53a902eeea4460e 100644 |
--- a/third_party/WebKit/Source/bindings/templates/interface_base.cpp |
+++ b/third_party/WebKit/Source/bindings/templates/interface_base.cpp |
@@ -333,14 +333,10 @@ static void install{{v8_class}}Template(v8::Local<v8::FunctionTemplate> interfac |
instanceTemplate->SetAccessCheckCallback({{cpp_class}}V8Internal::securityCheck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperTypeInfo))); |
{% endif %} |
- {%- if has_array_iterator %}{{newline}} |
+ {%- if has_array_iterator and not is_global %}{{newline}} |
// Array iterator |
- {% if is_global %} |
- instanceTemplate->SetIntrinsicDataProperty(v8::Symbol::GetIterator(isolate), v8::kArrayProto_values, v8::DontEnum); |
- {% else %} |
prototypeTemplate->SetIntrinsicDataProperty(v8::Symbol::GetIterator(isolate), v8::kArrayProto_values, v8::DontEnum); |
{% endif %} |
- {% endif %} |
{%- set runtime_enabled_features = dict() %} |
{% for attribute in attributes |