summaryrefslogtreecommitdiff
path: root/js/src/builtin/Stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/builtin/Stream.cpp')
-rw-r--r--js/src/builtin/Stream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/builtin/Stream.cpp b/js/src/builtin/Stream.cpp
index c8d8e3e324..26457709d8 100644
--- a/js/src/builtin/Stream.cpp
+++ b/js/src/builtin/Stream.cpp
@@ -2790,7 +2790,7 @@ ReadableStreamControllerCallPullIfNeeded(JSContext* cx, HandleNativeObject contr
} else {
pullPromise = PromiseInvokeOrNoop(cx, underlyingSource, cx->names().pull, controllerVal);
}
- if (!pullPromise)
+ if (!pullPromise || !pullPromise->is<PromiseObject>())
return false;
RootedObject onPullFulfilled(cx, NewHandler(cx, ControllerPullHandler, controller));