1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibJS: Update spec link for InstallErrorCause AO

This commit is contained in:
Timothy Flynn 2021-12-21 08:34:06 -05:00 committed by Linus Groh
parent d69f5ca128
commit 4fe47ed86e

View file

@ -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<void> Error::install_error_cause(Value options)
{
auto& vm = this->vm();
@ -44,7 +44,7 @@ ThrowCompletionOr<void> 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 {};
}