Index: Source/bindings/tests/results/core/V8TestInterface2.cpp |
diff --git a/Source/bindings/tests/results/core/V8TestInterface2.cpp b/Source/bindings/tests/results/core/V8TestInterface2.cpp |
index f2cbb124df60ade87d3bd40d4dc1d7882d4861a0..7383701c1f9d4969d75b9a1199e197c4342825e3 100644 |
--- a/Source/bindings/tests/results/core/V8TestInterface2.cpp |
+++ b/Source/bindings/tests/results/core/V8TestInterface2.cpp |
@@ -331,11 +331,11 @@ static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value> |
if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
return; |
+ v8::String::Utf8Value namedProperty(name); |
+ ExceptionState exceptionState(ExceptionState::SetterContext, *namedProperty, "TestInterface2", info.Holder(), info.GetIsolate()); |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
TOSTRING_VOID(V8StringResource<>, propertyName, name); |
TOSTRING_VOID(V8StringResource<>, propertyValue, v8Value); |
- v8::String::Utf8Value namedProperty(name); |
- ExceptionState exceptionState(ExceptionState::SetterContext, *namedProperty, "TestInterface2", info.Holder(), info.GetIsolate()); |
bool result = impl->setNamedItem(propertyName, propertyValue, exceptionState); |
if (exceptionState.throwIfNeeded()) |
return; |