Add setMayBePrototype where it should be added (#7922)

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2023-12-29 18:26:33 -08:00
committed by GitHub
parent 15755a0246
commit 05f14c8d6a
29 changed files with 93 additions and 35 deletions

View File

@@ -139,7 +139,9 @@ void JSReadableByteStreamController::finishCreation(VM& vm)
JSObject* JSReadableByteStreamController::createPrototype(VM& vm, JSDOMGlobalObject& globalObject)
{
return JSReadableByteStreamControllerPrototype::create(vm, &globalObject, JSReadableByteStreamControllerPrototype::createStructure(vm, &globalObject, globalObject.objectPrototype()));
auto* structure = JSReadableByteStreamControllerPrototype::createStructure(vm, &globalObject, globalObject.objectPrototype());
structure->setMayBePrototype(true);
return JSReadableByteStreamControllerPrototype::create(vm, &globalObject, structure);
}
JSObject* JSReadableByteStreamController::prototype(VM& vm, JSDOMGlobalObject& globalObject)