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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInit.cpp

Issue 2340883003: Treat null dictionary members as missing per WebIDL (Closed)
Patch Set: Created 4 years, 3 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: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInit.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInit.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInit.cpp
index 07e64be46a30f9ea981e3ece10597829081a8a2b..c3df0c619c022c8d9b5a0fdc6b364d9bf6728615 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInit.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInit.cpp
@@ -36,7 +36,7 @@ void V8TestInterfaceEventInit::toImpl(v8::Isolate* isolate, v8::Local<v8::Value>
exceptionState.rethrowV8Exception(block.Exception());
return;
}
- if (stringMemberValue.IsEmpty() || stringMemberValue->IsUndefined()) {
+ if (isUndefinedOrNull(stringMemberValue)) {
// Do nothing.
} else {
V8StringResource<> stringMember = stringMemberValue;

Powered by Google App Engine
This is Rietveld 408576698