stream: fix enumerability of ReadableStream.from

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Mattias Buelens authored and Ulises Gascón committed 2024-01-09 08:22:58 +00:00
1 parent 95ed4ffc1e
commit a878e3abb0
2 files changed
+3 -7

No files matched your search

@@ -642,6 +642,9 @@ ObjectDefineProperties(ReadableStream.prototype, {
values: kEnumerableProperty,
[SymbolToStringTag]: getNonWritablePropertyDescriptor(ReadableStream.name),
});
ObjectDefineProperties(ReadableStream, {
from: kEnumerableProperty,
});
function TransferredReadableStream() {
return makeTransferable(ReflectConstruct(
-7
View File
@@ -1,11 +1,4 @@
{
"idlharness.any.js": {
"fail": {
"expected": [
"ReadableStream interface: operation from(any)"
]
}
},
"idlharness-shadowrealm.window.js": {
"skip": "ShadowRealm support is not enabled"
},