aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/builtins/js/ReadableStream.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-11 16:02:35 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-11 16:02:35 -0800
commit514f2a8eddf1a1d35a33cc096ed7403a79afe36f (patch)
tree0172fc957c2517381a591420c1467d65fc08efaa /src/bun.js/builtins/js/ReadableStream.js
parent5f5d74c534c6482d91c07037cd0a1ae02bd92a3f (diff)
downloadbun-514f2a8eddf1a1d35a33cc096ed7403a79afe36f.tar.gz
bun-514f2a8eddf1a1d35a33cc096ed7403a79afe36f.tar.zst
bun-514f2a8eddf1a1d35a33cc096ed7403a79afe36f.zip
Add test that fails on linux
Diffstat (limited to 'src/bun.js/builtins/js/ReadableStream.js')
-rw-r--r--src/bun.js/builtins/js/ReadableStream.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/bun.js/builtins/js/ReadableStream.js b/src/bun.js/builtins/js/ReadableStream.js
index 8020b024d..fb4327ec8 100644
--- a/src/bun.js/builtins/js/ReadableStream.js
+++ b/src/bun.js/builtins/js/ReadableStream.js
@@ -446,10 +446,7 @@ function locked()
function values(options) {
"use strict";
- var prototype = this?.constructor?.prototype;
- if (!prototype) {
- return @undefined;
- }
+ var prototype = @ReadableStream.prototype;
@readableStreamDefineLazyIterators(prototype);
return prototype.values.@call(this, options);
}
@@ -457,10 +454,7 @@ function values(options) {
@linkTimeConstant
function lazyAsyncIterator() {
"use strict";
- var prototype = this?.constructor?.prototype;
- if (!prototype) {
- return @undefined;
- }
+ var prototype = @ReadableStream.prototype;
@readableStreamDefineLazyIterators(prototype);
return prototype[globalThis.Symbol.asyncIterator].@call(this);
} \ No newline at end of file