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

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

Issue 2826673004: bindings: Make the sequence conversion code more compliant with WebIDL. (Closed)
Patch Set: Fix more test expectations Created 3 years, 8 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/DoubleOrLongOrBooleanSequence.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrLongOrBooleanSequence.cpp b/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrLongOrBooleanSequence.cpp
index 8037130079143e493ed98c0e83630ff1c49f8286..a141d6033f69b6d61985e9eb69ab4737a00fa480 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrLongOrBooleanSequence.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrLongOrBooleanSequence.cpp
@@ -69,8 +69,8 @@ void V8DoubleOrLongOrBooleanSequence::toImpl(v8::Isolate* isolate, v8::Local<v8:
if (conversionMode == UnionTypeConversionMode::kNullable && IsUndefinedOrNull(v8Value))
return;
- if (v8Value->IsArray()) {
- HeapVector<LongOrBoolean> cppValue = ToImplArray<HeapVector<LongOrBoolean>>(v8Value, 0, isolate, exceptionState);
+ if (HasCallableIteratorSymbol(isolate, v8Value, exceptionState)) {
+ HeapVector<LongOrBoolean> cppValue = NativeValueTraits<IDLSequence<LongOrBoolean>>::NativeValue(isolate, v8Value, exceptionState);
if (exceptionState.HadException())
return;
impl.setLongOrBooleanSequence(cppValue);

Powered by Google App Engine
This is Rietveld 408576698