Index: Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp |
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp b/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp |
index de4760007f7d9cbca644d989cba5df38039814d3..f84f87b0b1adc3f6acbf9a376b60e966f16ddae0 100644 |
--- a/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp |
+++ b/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp |
@@ -56,13 +56,18 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
V8StringResource<> type; |
TestInterfaceEventInit testInterfaceEventInit; |
{ |
- TOSTRING_VOID_INTERNAL(type, info[0]); |
+ type = info[0]; |
+ if (!type.prepare()) |
+ return; |
if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { |
exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit') is not an object."); |
exceptionState.throwIfNeeded(); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestInterfaceEventInit::toImpl(info.GetIsolate(), info[1], testInterfaceEventInit, exceptionState), exceptionState); |
+ if (!V8TestInterfaceEventInit::toImpl(info.GetIsolate(), info[1], testInterfaceEventInit, exceptionState)) { |
+ exceptionState.throwException(); |
+ return; |
+ } |
} |
RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEventInitConstructor::create(type, testInterfaceEventInit); |
v8::Local<v8::Object> wrapper = info.Holder(); |