LibJS: Update spec links and steps for the Error.isError proposal

This proposal reached stage 4 and was merged into ECMA-262. See:
caa0482
This commit is contained in:
Timothy Flynn 2025-10-01 11:58:16 -04:00 committed by Jelle Raaijmakers
parent 979761ad82
commit cb56ea7e24
Notes: github-actions[bot] 2025-10-03 07:05:07 +00:00
3 changed files with 5 additions and 13 deletions

View file

@ -260,15 +260,6 @@ Array& Value::as_array()
return static_cast<Array&>(as_object());
}
// 20.5.8.2 IsError ( argument ), https://tc39.es/proposal-is-error/#sec-iserror
bool Value::is_error() const
{
// 1. If argument is not an Object, return false.
// 2. If argument has an [[ErrorData]] internal slot, return true.
// 3. Return false.
return is_object() && is<Error>(as_object());
}
// 7.2.3 IsCallable ( argument ), https://tc39.es/ecma262/#sec-iscallable
bool Value::is_function() const
{