From 0af6e420b35929474837fe784bdbfe556c2f442f Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Fri, 9 Sep 2022 16:10:12 +0900 Subject: [PATCH] stream: remove `abortReason` from `WritableStreamDefaultController` The `abortReason` has been removed from the spec since we can get the abort reason via `controller.signal.reason`. This reflects the change. Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: https://github.com/nodejs/node/pull/44540 Refs: https://streams.spec.whatwg.org/#ws-default-controller-class-definition Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca --- doc/api/webstreams.md | 4 ---- lib/internal/webstreams/writablestream.js | 15 --------------- test/parallel/test-whatwg-writablestream.js | 6 ------ 3 files changed, 25 deletions(-) diff --git a/doc/api/webstreams.md b/doc/api/webstreams.md index b415113a80975b..6a73a160ee9f67 100644 --- a/doc/api/webstreams.md +++ b/doc/api/webstreams.md @@ -978,10 +978,6 @@ changes: The `WritableStreamDefaultController` manage's the {WritableStream}'s internal state. -#### `writableStreamDefaultController.abortReason` - -* Type: {any} The `reason` value passed to `writableStream.abort()`. - #### `writableStreamDefaultController.error(error)`