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

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

Issue 946973005: IDL: Drop value conversion (V8 -> C++) macros from generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 5 years, 10 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/V8TestInterfaceEventConstructor.cpp
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.cpp b/Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.cpp
index d2c5f1eccbc507ba7610eed52274c11cfa3edadb..430b4a6219d3fdab64e439f448038637a6977f7d 100644
--- a/Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.cpp
+++ b/Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.cpp
@@ -237,7 +237,9 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
return;
}
- TOSTRING_VOID(V8StringResource<>, type, info[0]);
+ V8StringResource<> type(info[0]);
+ if (!type.prepare())
+ return;
v8::Local<v8::Value> initializedByEventConstructorReadonlyAnyAttribute;
TestInterfaceEventConstructorInit eventInit;
if (info.Length() >= 2) {

Powered by Google App Engine
This is Rietveld 408576698