Skip to content

Commit a878e3a

Browse files
MattiasBuelensUlisesGascon
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 95ed4ff commit a878e3a

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
@@ -642,6 +642,9 @@ ObjectDefineProperties(ReadableStream.prototype, {
642642
values: kEnumerableProperty,
643643
[SymbolToStringTag]: getNonWritablePropertyDescriptor(ReadableStream.name),
644644
});
645+
ObjectDefineProperties(ReadableStream, {
646+
from: kEnumerableProperty,
647+
});
645648

646649
function TransferredReadableStream() {
647650
return makeTransferable(ReflectConstruct(

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)