1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:17:35 +00:00

LibJS: Fix a couple of Generator.prototype spec headers

This commit is contained in:
Timothy Flynn 2023-07-16 14:45:21 -04:00 committed by Linus Groh
parent 566a8dfd93
commit 82df3cee66

View file

@ -37,7 +37,7 @@ JS_DEFINE_NATIVE_FUNCTION(GeneratorPrototype::next)
return generator_object->resume(vm, vm.argument(0), {});
}
// 27.5.1.3 Generator.prototype.next ( value ), https://tc39.es/ecma262/#sec-generator.prototype.return
// 27.5.1.3 Generator.prototype.return ( value ), https://tc39.es/ecma262/#sec-generator.prototype.return
JS_DEFINE_NATIVE_FUNCTION(GeneratorPrototype::return_)
{
// 1. Let g be the this value.
@ -50,7 +50,7 @@ JS_DEFINE_NATIVE_FUNCTION(GeneratorPrototype::return_)
return generator_object->resume_abrupt(vm, completion, {});
}
// 27.5.1.4 Generator.prototype.next ( value ), https://tc39.es/ecma262/#sec-generator.prototype.throw
// 27.5.1.4 Generator.prototype.throw ( exception ), https://tc39.es/ecma262/#sec-generator.prototype.throw
JS_DEFINE_NATIVE_FUNCTION(GeneratorPrototype::throw_)
{
// 1. Let g be the this value.