From e5cce004e88319316cb8ebfcac38a1acb734bcd6 Mon Sep 17 00:00:00 2001 From: Mattias Buelens Date: Mon, 20 Nov 2023 22:23:24 +0100 Subject: [PATCH] stream: fix enumerability of ReadableStream.from PR-URL: https://github.com/nodejs/node/pull/50779 Reviewed-By: Filip Skokan Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Benjamin Gruenbaum --- lib/internal/webstreams/readablestream.js | 3 +++ test/wpt/status/streams.json | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/internal/webstreams/readablestream.js b/lib/internal/webstreams/readablestream.js index 363cce8ed3d0de..8e27bae439f8e3 100644 --- a/lib/internal/webstreams/readablestream.js +++ b/lib/internal/webstreams/readablestream.js @@ -639,6 +639,9 @@ ObjectDefineProperties(ReadableStream.prototype, { values: kEnumerableProperty, [SymbolToStringTag]: getNonWritablePropertyDescriptor(ReadableStream.name), }); +ObjectDefineProperties(ReadableStream, { + from: kEnumerableProperty, +}); function InternalTransferredReadableStream() { markTransferMode(this, false, true); diff --git a/test/wpt/status/streams.json b/test/wpt/status/streams.json index f2851bed440ab5..fa97eae8320d78 100644 --- a/test/wpt/status/streams.json +++ b/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" },