Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1138)

Unified Diff: third_party/WebKit/Source/bindings/templates/interface_base.cpp

Issue 1778773002: [bindings] remove @@iterator from Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on top of shipping CL Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698