Index: third_party/WebKit/Source/bindings/tests/results/core/BooleanOrElementSequence.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/BooleanOrElementSequence.cpp b/third_party/WebKit/Source/bindings/tests/results/core/BooleanOrElementSequence.cpp |
index 0690b6cac88c6c7d7eeea7e1e93a1f3e8846787c..a5f5f9653da4d8e643c832da16bfe594a3c68df4 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/BooleanOrElementSequence.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/BooleanOrElementSequence.cpp |
@@ -74,8 +74,8 @@ void V8BooleanOrElementSequence::toImpl(v8::Isolate* isolate, v8::Local<v8::Valu |
if (conversionMode == UnionTypeConversionMode::kNullable && IsUndefinedOrNull(v8Value)) |
return; |
- if (v8Value->IsArray()) { |
- HeapVector<Member<Element>> cppValue = ToMemberNativeArray<Element>(v8Value, 0, isolate, exceptionState); |
+ if (IsV8Sequence(v8Value, isolate, exceptionState)) { |
+ HeapVector<Member<Element>> cppValue = NativeValueTraits<IDLSequence<Element>>::NativeValue(isolate, v8Value, exceptionState); |
if (exceptionState.HadException()) |
return; |
impl.setElementSequence(cppValue); |