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

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

Issue 564063002: Generate simple code for "trivial" conversions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 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: Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp b/Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp
index 59e90787606ad1c82dabd2e7e57cf38ddd37c283..59ff3c9ce48e35d09dba07c8bad0a033e026920f 100644
--- a/Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp
+++ b/Source/bindings/tests/results/core/V8TestInterfaceNotScriptWrappable.cpp
@@ -45,7 +45,7 @@ static void attr1AttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
{
v8::Handle<v8::Object> holder = info.Holder();
TestInterfaceNotScriptWrappable* impl = V8TestInterfaceNotScriptWrappable::toImpl(holder);
- TONATIVE_VOID(TestInterfaceNotScriptWrappable*, cppValue, V8TestInterfaceNotScriptWrappable::toImplWithTypeCheck(info.GetIsolate(), v8Value));
+ TestInterfaceNotScriptWrappable* cppValue = V8TestInterfaceNotScriptWrappable::toImplWithTypeCheck(info.GetIsolate(), v8Value);
impl->setAttr1(WTF::getPtr(cppValue));
}
@@ -65,9 +65,7 @@ static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
TestInterfaceNotScriptWrappable* impl = V8TestInterfaceNotScriptWrappable::toImpl(info.Holder());
TestInterfaceNotScriptWrappable* arg;
{
- v8::TryCatch block;
- V8RethrowTryCatchScope rethrow(block);
- TONATIVE_VOID_INTERNAL(arg, V8TestInterfaceNotScriptWrappable::toImplWithTypeCheck(info.GetIsolate(), info[0]));
+ arg = V8TestInterfaceNotScriptWrappable::toImplWithTypeCheck(info.GetIsolate(), info[0]);
}
impl->func(arg);
}

Powered by Google App Engine
This is Rietveld 408576698