From 28f1cb85bfa8b6414dd8bb33d20a693cdeac1bef Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Tue, 16 Sep 2025 08:15:51 -0600 Subject: [PATCH] update precedent section in README 1. it's not a brand check like isError or isArray, it's just a check 1. link to isError in 262, it's no longer a proposal 1. add reference to `Array.isArray` as well 1. mention the associated magic behaviour for each of the precedent-setting methods --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 182e776..32a56ec 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ A new `Promise.isPromise` predicate that exposes the result of the [`IsPromise`] ## Precedent -[`Error.isError`](https://github.com/tc39/proposal-is-error) does a similar brand check for native `Error` objects. +[`Error.isError`](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-error.iserror) does a similar check for `Error` objects that have magic `stack` behaviour. [`Array.isArray`](https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.isarray) does a similar check for `Array` objects that have magic `length` behaviour. ## Membrane transparency