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

Unified Diff: Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp

Issue 1017733003: [DO NOT LAND] Set @@toStringTag for DOM object prototypes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test expectations Created 5 years, 6 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: Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp b/Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp
index 7c0e8c562258067d505edd731ee4683e6d37659f..46b1e81f1ae8520c27a3cb74fabd81483a735fda 100644
--- a/Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp
+++ b/Source/bindings/tests/results/core/V8TestInterfaceEventTarget.cpp
@@ -63,7 +63,6 @@ v8::Local<v8::FunctionTemplate> V8TestInterfaceEventTargetConstructor::domTempla
result = v8::FunctionTemplate::New(isolate, V8TestInterfaceEventTargetConstructorCallback);
v8::Local<v8::ObjectTemplate> instanceTemplate = result->InstanceTemplate();
instanceTemplate->SetInternalFieldCount(V8TestInterfaceEventTarget::internalFieldCount);
- result->SetClassName(v8AtomicString(isolate, "TestInterfaceEventTarget"));
result->Inherit(V8TestInterfaceEventTarget::domTemplate(isolate));
data->setDOMTemplate(&domTemplateKey, result);
return result;
@@ -83,6 +82,8 @@ static void installV8TestInterfaceEventTargetTemplate(v8::Local<v8::FunctionTemp
v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->PrototypeTemplate();
ALLOW_UNUSED_LOCAL(prototypeTemplate);
+ prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(isolate, "TestInterfaceEventTarget"));
+
// Custom toString template
functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData::from(isolate)->toStringTemplate());
}

Powered by Google App Engine
This is Rietveld 408576698