Index: Source/bindings/tests/results/V8TestEventTarget.cpp |
diff --git a/Source/bindings/tests/results/V8TestEventTarget.cpp b/Source/bindings/tests/results/V8TestEventTarget.cpp |
index 27fa2eefb7e48b76988f851d5bd5edc953dcb5b9..736e85da18a5832f90acbeac94ba1a1cdc817371 100644 |
--- a/Source/bindings/tests/results/V8TestEventTarget.cpp |
+++ b/Source/bindings/tests/results/V8TestEventTarget.cpp |
@@ -199,7 +199,11 @@ v8::Handle<v8::Value> V8TestEventTarget::namedPropertySetter(v8::Local<v8::Strin |
TestEventTarget* collection = toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyName, name); |
V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyValue, value); |
- bool result = collection->anonymousNamedSetter(propertyName, propertyValue); |
+ bool result; |
+ if (value->IsUndefined()) |
+ result = collection->anonymousNamedSetterUndefined(propertyName); |
+ else |
+ result = collection->anonymousNamedSetter(propertyName, propertyValue); |
if (!result) |
return v8Undefined(); |
return value; |