JSArrayBufferConstructor* JSArrayBufferConstructor::create(VM& vm, Structure* structure, JSArrayBufferPrototype* prototype, GetterSetter* speciesSymbol) { JSArrayBufferConstructor* result = new (NotNull, allocateCell<JSArrayBufferConstructor>(vm.heap)) JSArrayBufferConstructor(vm, structure); result->finishCreation(vm, prototype, speciesSymbol); return result; }
JSArrayBufferConstructor* JSArrayBufferConstructor::create(CallFrame* callFrame, JSGlobalObject* globalObject, Structure* structure, JSArrayBufferPrototype* prototype) { VM& vm = callFrame->vm(); JSArrayBufferConstructor* result = new (NotNull, allocateCell<JSArrayBufferConstructor>(vm.heap)) JSArrayBufferConstructor(globalObject, structure); result->finishCreation(vm, prototype); return result; }