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 b096303e61614f3685a46efee01a31d71d516ba9..6a08314c8e9daf7d4a35fa93902386137376a08d 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(isolate, v8Value, exceptionState)) { |
+ HeapVector<Member<Element>> cppValue = NativeValueTraits<IDLSequence<Element>>::NativeValue(isolate, v8Value, exceptionState); |
if (exceptionState.HadException()) |
return; |
impl.setElementSequence(cppValue); |