From 3d5a70b1b543a776dd5e255f8bfd877bf08bdc74 Mon Sep 17 00:00:00 2001 From: Andrew Drake Date: Thu, 21 Mar 2024 09:54:54 -0700 Subject: [PATCH] Editorial: Remove "message" property from list of Error differences (#3292) This language is a holdover from ES3, the "message" property of all Error prototype objects is defined to be the empty string since ES5. Co-authored-by: Andrew Drake Co-authored-by: Kevin Gibbons --- spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 6b0f85cee2..0f9b7ab32a 100644 --- a/spec.html +++ b/spec.html @@ -30859,7 +30859,7 @@

Error Objects

Instances of Error objects are thrown as exceptions when runtime errors occur. The Error objects may also serve as base objects for user-defined exception classes.

-

When an ECMAScript implementation detects a runtime error, it throws a new instance of one of the _NativeError_ objects defined in or a new instance of AggregateError object defined in . Each of these objects has the structure described below, differing only in the name used as the constructor name instead of _NativeError_, in the *"name"* property of the prototype object, in the implementation-defined *"message"* property of the prototype object, and in the presence of the %AggregateError%-specific *"errors"* property.

+

When an ECMAScript implementation detects a runtime error, it throws a new instance of one of the _NativeError_ objects defined in or a new instance of the AggregateError object defined in .

The Error Constructor

@@ -30991,7 +30991,7 @@

URIError

_NativeError_ Object Structure

-

When an ECMAScript implementation detects a runtime error, it throws a new instance of one of the _NativeError_ objects defined in . Each of these objects has the structure described below, differing only in the name used as the constructor name instead of _NativeError_, in the *"name"* property of the prototype object, and in the implementation-defined *"message"* property of the prototype object.

+

Each of these objects has the structure described below, differing only in the name used as the constructor name and in the *"name"* property of the prototype object.

For each error object, references to _NativeError_ in the definition should be replaced with the appropriate error object name from .