mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibJS: Convert internal_set_prototype_of() to ThrowCompletionOr
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 03:19:34 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/8c81c84c181 Pull-request: https://github.com/SerenityOS/serenity/pull/10266 Reviewed-by: https://github.com/IdanHo ✅
@@ -81,7 +81,7 @@ void ECMAScriptFunctionObject::initialize(GlobalObject& global_object)
|
||||
break;
|
||||
case FunctionKind::Generator:
|
||||
// prototype is "g1.prototype" in figure-2 (https://tc39.es/ecma262/img/figure-2.png)
|
||||
prototype->internal_set_prototype_of(global_object.generator_object_prototype());
|
||||
(void)prototype->internal_set_prototype_of(global_object.generator_object_prototype());
|
||||
break;
|
||||
}
|
||||
define_direct_property(vm.names.prototype, prototype, Attribute::Writable);
|
||||
|
||||
Reference in New Issue
Block a user