From a878e3abb0e65033192e87dbe21d84a2e5954621 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 4dc45edea703db..442b997315c89b 100644 --- a/lib/internal/webstreams/readablestream.js +++ b/lib/internal/webstreams/readablestream.js @@ -642,6 +642,9 @@ ObjectDefineProperties(ReadableStream.prototype, { values: kEnumerableProperty, [SymbolToStringTag]: getNonWritablePropertyDescriptor(ReadableStream.name), }); +ObjectDefineProperties(ReadableStream, { + from: kEnumerableProperty, +}); function TransferredReadableStream() { return makeTransferable(ReflectConstruct( diff --git a/test/wpt/status/streams.json b/test/wpt/status/streams.json index ec2f71d8908460..3b6e0ce6429f9d 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" },