diff options
Diffstat (limited to 'runtime/js/40_spawn.js')
| -rw-r--r-- | runtime/js/40_spawn.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/js/40_spawn.js b/runtime/js/40_spawn.js index 0f26313a6..9d4aa3e9f 100644 --- a/runtime/js/40_spawn.js +++ b/runtime/js/40_spawn.js @@ -10,6 +10,7 @@ const { ArrayPrototypeMap, ObjectEntries, + ObjectPrototypeIsPrototypeOf, String, TypeError, PromisePrototypeThen, @@ -21,6 +22,7 @@ readableStreamForRidUnrefable, readableStreamForRidUnrefableRef, readableStreamForRidUnrefableUnref, + ReadableStreamPrototype, writableStreamForRid, } = window.__bootstrap.streams; @@ -65,7 +67,9 @@ } function collectOutput(readableStream) { - if (!(readableStream instanceof ReadableStream)) { + if ( + !(ObjectPrototypeIsPrototypeOf(ReadableStreamPrototype, readableStream)) + ) { return null; } |
