mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user