mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
LibWeb: Update spec comments using "Type(Foo)" -> "is a Foo"
This commit is contained in:
parent
00e613c7df
commit
f31c18756b
Notes:
github-actions[bot]
2024-10-31 13:02:41 +00:00
Author: https://github.com/AtkinsSJ
Commit: f31c18756b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2079
5 changed files with 12 additions and 12 deletions
|
@ -60,7 +60,7 @@ static JS::ThrowCompletionOr<Vector<String>> convert_value_to_sequence_of_string
|
|||
{
|
||||
// FIXME: De-duplicate this from the IDL generator.
|
||||
// An ECMAScript value V is converted to an IDL sequence<T> value as follows:
|
||||
// 1. If Type(V) is not Object, throw a TypeError.
|
||||
// 1. If V is not an Object, throw a TypeError.
|
||||
if (!value.is_object())
|
||||
return vm.throw_completion<JS::TypeError>(JS::ErrorType::NotAnObject, value.to_string_without_side_effects());
|
||||
|
||||
|
@ -188,7 +188,7 @@ JS::ThrowCompletionOr<void> CustomElementRegistry::define(String const& name, We
|
|||
// 1. Let prototype be ? Get(constructor, "prototype").
|
||||
auto prototype_value = TRY(constructor->callback->get(vm.names.prototype));
|
||||
|
||||
// 2. If Type(prototype) is not Object, then throw a TypeError exception.
|
||||
// 2. If prototype is not an Object, then throw a TypeError exception.
|
||||
if (!prototype_value.is_object())
|
||||
return vm.throw_completion<JS::TypeError>(JS::ErrorType::NotAnObject, prototype_value.to_string_without_side_effects());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue