Index: Source/bindings/v8/V8Utilities.cpp |
diff --git a/Source/bindings/v8/V8Utilities.cpp b/Source/bindings/v8/V8Utilities.cpp |
index 310c64e84af2cf1529c5dc05215aa2534d25f70f..f987326d4707bbac78c890959ccbb221c9baf669 100644 |
--- a/Source/bindings/v8/V8Utilities.cpp |
+++ b/Source/bindings/v8/V8Utilities.cpp |
@@ -76,9 +76,9 @@ bool extractTransferables(v8::Local<v8::Value> value, MessagePortArray& ports, A |
if (value->IsArray()) { |
v8::Local<v8::Array> array = v8::Local<v8::Array>::Cast(value); |
length = array->Length(); |
- } else { |
- if (toV8Sequence(value, length, notASequence, isolate).IsEmpty()) |
- return false; |
+ } else if (toV8Sequence(value, length, isolate).IsEmpty()) { |
+ notASequence = true; |
+ return false; |
} |
v8::Local<v8::Object> transferrables = v8::Local<v8::Object>::Cast(value); |