Index: third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl |
diff --git a/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl |
index 008729d5f1802e74455337176bb62f3d434a4c67..779b9142e3ef902cb17af8b5b28a63301808d431 100644 |
--- a/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl |
+++ b/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl |
@@ -298,6 +298,10 @@ static void install{{v8_class}}Template(v8::Isolate* isolate, const DOMWrapperWo |
{%- if interface_name == 'Window' and not is_partial %}{{newline}} |
prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); |
{% endif %} |
+ {%if is_immutable_prototype %}{{newline}} |
+ // Global object prototype chain consists of Immutable Prototype Exotic Objects |
+ prototypeTemplate->SetImmutableProto(); |
+ {% endif %} |
// Register DOM constants, attributes and operations. |
{% filter runtime_enabled(runtime_enabled_function) %} |