Skip to content

Commit e5cce00

Browse files
MattiasBuelensRafaelGSS
authored andcommitted
stream: fix enumerability of ReadableStream.from
PR-URL: #50779 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent 4522e22 commit e5cce00

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

lib/internal/webstreams/readablestream.js

+3
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,9 @@ ObjectDefineProperties(ReadableStream.prototype, {
639639
values: kEnumerableProperty,
640640
[SymbolToStringTag]: getNonWritablePropertyDescriptor(ReadableStream.name),
641641
});
642+
ObjectDefineProperties(ReadableStream, {
643+
from: kEnumerableProperty,
644+
});
642645

643646
function InternalTransferredReadableStream() {
644647
markTransferMode(this, false, true);

test/wpt/status/streams.json

-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"idlharness.any.js": {
3-
"fail": {
4-
"expected": [
5-
"ReadableStream interface: operation from(any)"
6-
]
7-
}
8-
},
92
"idlharness-shadowrealm.window.js": {
103
"skip": "ShadowRealm support is not enabled"
114
},

0 commit comments

Comments
 (0)