Skip to content

Commit

Permalink
stream: fix enumerability of ReadableStream.from
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
MattiasBuelens authored and UlisesGascon committed Dec 12, 2023
1 parent 85e0f37 commit 9617b28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions lib/internal/webstreams/readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,9 @@ ObjectDefineProperties(ReadableStream.prototype, {
values: kEnumerableProperty,
[SymbolToStringTag]: getNonWritablePropertyDescriptor(ReadableStream.name),
});
ObjectDefineProperties(ReadableStream, {
from: kEnumerableProperty,
});

function TransferredReadableStream() {
return makeTransferable(ReflectConstruct(
Expand Down
7 changes: 0 additions & 7 deletions test/wpt/status/streams.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
{
"idlharness.any.js": {
"fail": {
"expected": [
"ReadableStream interface: operation from(any)"
]
}
},
"idlharness-shadowrealm.window.js": {
"skip": "ShadowRealm support is not enabled"
},
Expand Down

0 comments on commit 9617b28

Please sign in to comment.