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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp

Issue 2342053002: binding: Refactors bindings/templates/attributes.cpp. (Closed)
Patch Set: Synced. Created 4 years, 3 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/tests/results/core/V8TestException.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
index b5878f80a2b0f0eb27cbdd069c9b3d2836d2d0ea..5799a33cf834a58e916f3535425655a921d48f56 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
@@ -52,7 +52,9 @@ namespace TestExceptionV8Internal {
static void readonlyUnsignedShortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
{
v8::Local<v8::Object> holder = info.Holder();
+
TestException* impl = V8TestException::toImpl(holder);
+
v8SetReturnValueUnsigned(info, impl->readonlyUnsignedShortAttribute());
}
@@ -64,7 +66,9 @@ void readonlyUnsignedShortAttributeAttributeGetterCallback(const v8::FunctionCal
static void readonlyStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
{
v8::Local<v8::Object> holder = info.Holder();
+
TestException* impl = V8TestException::toImpl(holder);
+
v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolate());
}

Powered by Google App Engine
This is Rietveld 408576698