From 4fe47ed86e31bd7978cf33f8992b2e9ba4f4b4a1 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 21 Dec 2021 08:34:06 -0500 Subject: [PATCH] LibJS: Update spec link for InstallErrorCause AO --- Userland/Libraries/LibJS/Runtime/Error.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Runtime/Error.cpp b/Userland/Libraries/LibJS/Runtime/Error.cpp index 32d0218ba66..378d6f572da 100644 --- a/Userland/Libraries/LibJS/Runtime/Error.cpp +++ b/Userland/Libraries/LibJS/Runtime/Error.cpp @@ -30,7 +30,7 @@ Error::Error(Object& prototype) { } -// 20.5.8.1 InstallErrorCause ( O, options ), https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause +// 20.5.8.1 InstallErrorCause ( O, options ), https://tc39.es/ecma262/#sec-installerrorcause ThrowCompletionOr Error::install_error_cause(Value options) { auto& vm = this->vm(); @@ -44,7 +44,7 @@ ThrowCompletionOr Error::install_error_cause(Value options) MUST(create_non_enumerable_data_property_or_throw(vm.names.cause, cause)); } - // Return NormalCompletion(undefined). + // 2. Return NormalCompletion(undefined). return {}; }