From 20a018c592dd2d3f9fd221df90dc7a7eec4d2cd8 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 18 Nov 2024 14:30:23 +0100 Subject: [PATCH 1/2] Add error-cause feature --- features/error-cause.yml | 7 +++++++ features/error-cause.yml.dist | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 features/error-cause.yml create mode 100644 features/error-cause.yml.dist diff --git a/features/error-cause.yml b/features/error-cause.yml new file mode 100644 index 00000000000..3b437a3c8e4 --- /dev/null +++ b/features/error-cause.yml @@ -0,0 +1,7 @@ +name: Error.cause property +description: The `cause` property of errors indicates the specific original cause of the error. +spec: + - https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-installerrorcause +compat_features: + - javascript.builtins.Error.Error.options_cause_parameter + - javascript.builtins.Error.cause diff --git a/features/error-cause.yml.dist b/features/error-cause.yml.dist new file mode 100644 index 00000000000..763b01f950d --- /dev/null +++ b/features/error-cause.yml.dist @@ -0,0 +1,18 @@ +# Generated from: error-cause.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2021-09-20 + baseline_high_date: 2024-03-20 + support: + chrome: "93" + chrome_android: "93" + edge: "93" + firefox: "91" + firefox_android: "91" + safari: "15" + safari_ios: "15" +compat_features: + - javascript.builtins.Error.Error.options_cause_parameter + - javascript.builtins.Error.cause From 39d2b7b8586e9320f2c3703d360b2270337e5f25 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 18 Nov 2024 16:55:28 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Daniel D. Beck --- features/error-cause.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/error-cause.yml b/features/error-cause.yml index 3b437a3c8e4..69e25634134 100644 --- a/features/error-cause.yml +++ b/features/error-cause.yml @@ -1,5 +1,5 @@ -name: Error.cause property -description: The `cause` property of errors indicates the specific original cause of the error. +name: Error cause +description: The `cause` property of errors records the specific original cause of the error, particularly for errors that have been re-thrown. spec: - https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-installerrorcause compat_features: