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 <panva.ip@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
  • Loading branch information
MattiasBuelens authored and UlisesGascon committed Jan 9, 2024
1 parent 95ed4ff commit a878e3a
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
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
@@ -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 a878e3a

Please sign in to comment.