From dd8bbaf886f2417eedb23a0cd7fcf359599c4e01 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 3 Jun 2022 09:12:54 +0200 Subject: [PATCH] Remove ErrorEventInit's error default This ensures that ErrorEvent has equivalent expressiveness to reportError(). Fixes #7853. --- source | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source b/source index 40b02b992cb..1a015e945f8 100644 --- a/source +++ b/source @@ -94923,7 +94923,7 @@ dictionary ErrorEventInit : EventInit { USVString filename = ""; unsigned long lineno = 0; unsigned long colno = 0; - any error = null; + any error; };

The message @@ -94943,8 +94943,9 @@ dictionary ErrorEventInit : EventInit { error occurred in the script.

The error - attribute must return the value it was initialized to. Where appropriate, it is set to the object - representing the error (e.g., the exception object in the case of an uncaught DOM exception).

+ attribute must return the value it was initialized to. It must initially be initialized to + undefined. Where appropriate, it is set to the object representing the error (e.g., the exception + object in the case of an uncaught exception).