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

Unified Diff: Source/bindings/tests/results/V8TestEventTarget.cpp

Issue 15899009: Support indexed setter generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 years, 7 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/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;
« no previous file with comments | « Source/bindings/tests/idls/TestEventTarget.idl ('k') | Source/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698