| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp
|
| index a5f1d6f05642a48e93566ac6b960778bd4cd3145..db0196f560aa1b373af14ed381cc2b5920324dc3 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp
|
| @@ -51,8 +51,9 @@ static void hrefAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Function
|
| v8::Local<v8::Object> holder = info.Holder();
|
| TestNode* impl = V8TestNode::toImpl(holder);
|
| V8StringResource<> cppValue = v8Value;
|
| - if (!cppValue.prepare())
|
| + if (!cppValue.prepare()) {
|
| return;
|
| + }
|
| impl->setHref(cppValue);
|
| }
|
|
|
| @@ -80,10 +81,10 @@ static void hrefThrowsAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Fu
|
| ExceptionState exceptionState(ExceptionState::SetterContext, "hrefThrows", "TestNode", holder, info.GetIsolate());
|
| TestNode* impl = V8TestNode::toImpl(holder);
|
| V8StringResource<> cppValue = v8Value;
|
| - if (!cppValue.prepare())
|
| + if (!cppValue.prepare()) {
|
| return;
|
| + }
|
| impl->setHrefThrows(cppValue, exceptionState);
|
| - exceptionState.throwIfNeeded();
|
| }
|
|
|
| static void hrefThrowsAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -109,8 +110,9 @@ static void hrefCallWithAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
|
| v8::Local<v8::Object> holder = info.Holder();
|
| TestNode* impl = V8TestNode::toImpl(holder);
|
| V8StringResource<> cppValue = v8Value;
|
| - if (!cppValue.prepare())
|
| + if (!cppValue.prepare()) {
|
| return;
|
| + }
|
| ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| impl->setHrefCallWith(executionContext, currentDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
|
| }
|
| @@ -139,8 +141,9 @@ static void hrefByteStringAttributeSetter(v8::Local<v8::Value> v8Value, const v8
|
| ExceptionState exceptionState(ExceptionState::SetterContext, "hrefByteString", "TestNode", holder, info.GetIsolate());
|
| TestNode* impl = V8TestNode::toImpl(holder);
|
| V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, exceptionState);
|
| - if (exceptionState.throwIfNeeded())
|
| + if (exceptionState.hadException()) {
|
| return;
|
| + }
|
| impl->setHrefByteString(cppValue);
|
| }
|
|
|
|
|