Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/bun.js/bindings/BakeAdditionsToGlobalObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,33 +46,33 @@ extern "C" SYSV_ABI EncodedJSValue Bake__createDevServerFrameworkRequestArgsObje

extern "C" SYSV_ABI JSC::EncodedJSValue Bake__getAsyncLocalStorage(JSC::JSGlobalObject* globalObject)
{
auto* zig = reinterpret_cast<Zig::GlobalObject*>(globalObject);
auto* zig = static_cast<Zig::GlobalObject*>(globalObject);
auto value = zig->bakeAdditions().getAsyncLocalStorage(zig);
return JSValue::encode(value);
}

extern "C" SYSV_ABI JSC::EncodedJSValue Bake__getEnsureAsyncLocalStorageInstanceJSFunction(JSC::JSGlobalObject* globalObject)
{
auto* zig = reinterpret_cast<Zig::GlobalObject*>(globalObject);
auto* zig = static_cast<Zig::GlobalObject*>(globalObject);
return JSValue::encode(zig->bakeAdditions().ensureAsyncLocalStorageInstanceJSFunction(globalObject));
}

extern "C" SYSV_ABI JSC::EncodedJSValue Bake__getSSRResponseConstructor(JSC::JSGlobalObject* globalObject)
{
auto* zig = reinterpret_cast<Zig::GlobalObject*>(globalObject);
auto* zig = static_cast<Zig::GlobalObject*>(globalObject);
return JSValue::encode(zig->bakeAdditions().JSBakeResponseConstructor(globalObject));
}

BUN_DEFINE_HOST_FUNCTION(jsFunctionBakeGetAsyncLocalStorage, (JSC::JSGlobalObject * globalObject, JSC::CallFrame* callframe))
{
auto* zig = reinterpret_cast<Zig::GlobalObject*>(globalObject);
auto* zig = static_cast<Zig::GlobalObject*>(globalObject);
return JSValue::encode(zig->bakeAdditions().getAsyncLocalStorage(zig));
}

BUN_DEFINE_HOST_FUNCTION(jsFunctionBakeEnsureAsyncLocalStorage, (JSC::JSGlobalObject * globalObject, JSC::CallFrame* callframe))
{
auto scope = DECLARE_THROW_SCOPE(globalObject->vm());
auto* zig = reinterpret_cast<Zig::GlobalObject*>(globalObject);
auto* zig = static_cast<Zig::GlobalObject*>(globalObject);
if (callframe->argumentCount() < 1) {
Bun::throwError(globalObject, scope, ErrorCode::ERR_MISSING_ARGS, "bakeEnsureAsyncLocalStorage requires at least one argument"_s);
return JSValue::encode(jsUndefined());
Expand All @@ -84,7 +84,7 @@ BUN_DEFINE_HOST_FUNCTION(jsFunctionBakeEnsureAsyncLocalStorage, (JSC::JSGlobalOb

extern "C" SYSV_ABI JSC::EncodedJSValue Bake__getBundleNewRouteJSFunction(JSC::JSGlobalObject* globalObject)
{
auto* zig = reinterpret_cast<Zig::GlobalObject*>(globalObject);
auto* zig = static_cast<Zig::GlobalObject*>(globalObject);
auto value = zig->bakeAdditions().getBundleNewRouteJSFunction(zig);
return JSValue::encode(value);
}
Expand Down Expand Up @@ -124,7 +124,7 @@ BUN_DEFINE_HOST_FUNCTION(jsFunctionBakeGetBundleNewRouteJSFunction, (JSC::JSGlob

extern "C" SYSV_ABI JSC::EncodedJSValue Bake__getNewRouteParamsJSFunction(JSC::JSGlobalObject* globalObject)
{
auto* zig = reinterpret_cast<Zig::GlobalObject*>(globalObject);
auto* zig = static_cast<Zig::GlobalObject*>(globalObject);
auto value = zig->bakeAdditions().getNewRouteParamsJSFunction(zig);
return JSValue::encode(value);
}
Expand Down
14 changes: 7 additions & 7 deletions src/bun.js/bindings/BunDebugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class BunInspectorConnection : public Inspector::FrontendChannel {
this->status = ConnectionStatus::Connected;
auto* globalObject = context.jsGlobalObject();
if (this->unrefOnDisconnect) {
Bun__eventLoop__incrementRefConcurrently(reinterpret_cast<Zig::GlobalObject*>(globalObject)->bunVM(), 1);
Bun__eventLoop__incrementRefConcurrently(static_cast<Zig::GlobalObject*>(globalObject)->bunVM(), 1);
}
globalObject->setInspectable(true);
auto& inspector = globalObject->inspectorDebuggable();
Expand Down Expand Up @@ -129,7 +129,7 @@ class BunInspectorConnection : public Inspector::FrontendChannel {
};
}

this->receiveMessagesOnInspectorThread(context, reinterpret_cast<Zig::GlobalObject*>(globalObject), false);
this->receiveMessagesOnInspectorThread(context, static_cast<Zig::GlobalObject*>(globalObject), false);
}

void connect()
Expand Down Expand Up @@ -187,7 +187,7 @@ class BunInspectorConnection : public Inspector::FrontendChannel {

if (connection->unrefOnDisconnect) {
connection->unrefOnDisconnect = false;
Bun__eventLoop__incrementRefConcurrently(reinterpret_cast<Zig::GlobalObject*>(context.jsGlobalObject())->bunVM(), -1);
Bun__eventLoop__incrementRefConcurrently(static_cast<Zig::GlobalObject*>(context.jsGlobalObject())->bunVM(), -1);
}
});
}
Expand All @@ -207,7 +207,7 @@ class BunInspectorConnection : public Inspector::FrontendChannel {

static void runWhilePaused(JSGlobalObject& globalObject, bool& isDoneProcessingEvents)
{
Zig::GlobalObject* global = reinterpret_cast<Zig::GlobalObject*>(&globalObject);
Zig::GlobalObject* global = static_cast<Zig::GlobalObject*>(&globalObject);
Vector<BunInspectorConnection*, 8> connections;
{
Locker<Lock> locker(inspectorConnectionsLock);
Expand Down Expand Up @@ -333,7 +333,7 @@ class BunInspectorConnection : public Inspector::FrontendChannel {

if (this->debuggerThreadMessageScheduledCount++ == 0) {
debuggerScriptExecutionContext->postTaskConcurrently([connection = this](ScriptExecutionContext& context) {
connection->receiveMessagesOnDebuggerThread(context, reinterpret_cast<Zig::GlobalObject*>(context.jsGlobalObject()));
connection->receiveMessagesOnDebuggerThread(context, static_cast<Zig::GlobalObject*>(context.jsGlobalObject()));
});
}
}
Expand All @@ -349,7 +349,7 @@ class BunInspectorConnection : public Inspector::FrontendChannel {
this->jsWaitForMessageFromInspectorLock.unlock();
} else if (this->jsThreadMessageScheduledCount++ == 0) {
ScriptExecutionContext::postTaskTo(scriptExecutionContextIdentifier, [connection = this](ScriptExecutionContext& context) {
connection->receiveMessagesOnInspectorThread(context, reinterpret_cast<Zig::GlobalObject*>(context.jsGlobalObject()), true);
connection->receiveMessagesOnInspectorThread(context, static_cast<Zig::GlobalObject*>(context.jsGlobalObject()), true);
});
}
}
Expand All @@ -365,7 +365,7 @@ class BunInspectorConnection : public Inspector::FrontendChannel {
this->jsWaitForMessageFromInspectorLock.unlock();
} else if (this->jsThreadMessageScheduledCount++ == 0) {
ScriptExecutionContext::postTaskTo(scriptExecutionContextIdentifier, [connection = this](ScriptExecutionContext& context) {
connection->receiveMessagesOnInspectorThread(context, reinterpret_cast<Zig::GlobalObject*>(context.jsGlobalObject()), true);
connection->receiveMessagesOnInspectorThread(context, static_cast<Zig::GlobalObject*>(context.jsGlobalObject()), true);
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/bindings/BunPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ JSC::JSValue runVirtualModule(Zig::GlobalObject* globalObject, BunString* specif

BUN_DEFINE_HOST_FUNCTION(jsFunctionBunPluginClear, (JSC::JSGlobalObject * globalObject, JSC::CallFrame* callframe))
{
Zig::GlobalObject* global = reinterpret_cast<Zig::GlobalObject*>(globalObject);
Zig::GlobalObject* global = static_cast<Zig::GlobalObject*>(globalObject);
global->onLoadPlugins.fileNamespace.clear();
global->onResolvePlugins.fileNamespace.clear();
global->onLoadPlugins.groups.clear();
Expand Down
10 changes: 5 additions & 5 deletions src/bun.js/bindings/BunProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ extern "C" bool Bun__VM__allowAddons(void* vm);

JSC_DEFINE_HOST_FUNCTION(Process_functionDlopen, (JSC::JSGlobalObject * globalObject_, JSC::CallFrame* callFrame))
{
Zig::GlobalObject* globalObject = reinterpret_cast<Zig::GlobalObject*>(globalObject_);
Zig::GlobalObject* globalObject = static_cast<Zig::GlobalObject*>(globalObject_);
auto callCountAtStart = globalObject->napiModuleRegisterCallCount;
auto scope = DECLARE_THROW_SCOPE(JSC::getVM(globalObject));
auto& vm = JSC::getVM(globalObject);
Expand Down Expand Up @@ -775,7 +775,7 @@ JSC_DEFINE_HOST_FUNCTION(Process_functionExit, (JSC::JSGlobalObject * globalObje

JSC_DEFINE_HOST_FUNCTION(Process_setUncaughtExceptionCaptureCallback, (JSC::JSGlobalObject * lexicalGlobalObject, JSC::CallFrame* callFrame))
{
auto* globalObject = reinterpret_cast<Zig::GlobalObject*>(lexicalGlobalObject);
auto* globalObject = static_cast<Zig::GlobalObject*>(lexicalGlobalObject);
auto& vm = JSC::getVM(globalObject);
auto throwScope = DECLARE_THROW_SCOPE(vm);
auto arg0 = callFrame->argument(0);
Expand Down Expand Up @@ -813,7 +813,7 @@ extern "C" uint64_t Bun__readOriginTimer(void*);

JSC_DEFINE_HOST_FUNCTION(Process_functionHRTime, (JSC::JSGlobalObject * globalObject_, JSC::CallFrame* callFrame))
{
Zig::GlobalObject* globalObject = reinterpret_cast<Zig::GlobalObject*>(globalObject_);
Zig::GlobalObject* globalObject = static_cast<Zig::GlobalObject*>(globalObject_);
auto& vm = JSC::getVM(globalObject);
auto throwScope = DECLARE_THROW_SCOPE(vm);

Expand Down Expand Up @@ -865,7 +865,7 @@ JSC_DEFINE_HOST_FUNCTION(Process_functionHRTime, (JSC::JSGlobalObject * globalOb

JSC_DEFINE_HOST_FUNCTION(Process_functionHRTimeBigInt, (JSC::JSGlobalObject * globalObject_, JSC::CallFrame* callFrame))
{
Zig::GlobalObject* globalObject = reinterpret_cast<Zig::GlobalObject*>(globalObject_);
Zig::GlobalObject* globalObject = static_cast<Zig::GlobalObject*>(globalObject_);
return JSC::JSValue::encode(JSValue(JSC::JSBigInt::createFrom(globalObject, Bun__readOriginTimer(globalObject->bunVM()))));
}

Expand Down Expand Up @@ -2105,7 +2105,7 @@ JSC_DEFINE_HOST_FUNCTION(Process_functionWriteReport, (JSGlobalObject * globalOb
static JSValue constructProcessReportObject(VM& vm, JSObject* processObject)
{
auto* globalObject = processObject->globalObject();
// auto* globalObject = reinterpret_cast<Zig::GlobalObject*>(lexicalGlobalObject);
// auto* globalObject = static_cast<Zig::GlobalObject*>(lexicalGlobalObject);
auto process = jsCast<Process*>(processObject);

auto* report = JSC::constructEmptyObject(globalObject, globalObject->objectPrototype(), 10);
Expand Down
6 changes: 3 additions & 3 deletions src/bun.js/bindings/JSBakeResponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extern JSC_CALLCONV size_t Response__estimatedSize(void* ptr);
bool isJSXElement(JSC::EncodedJSValue JSValue0, JSC::JSGlobalObject* globalObject)
{

auto* zigGlobal = reinterpret_cast<Zig::GlobalObject*>(globalObject);
auto* zigGlobal = static_cast<Zig::GlobalObject*>(globalObject);
auto& vm = JSC::getVM(globalObject);

// React does this:
Expand Down Expand Up @@ -236,7 +236,7 @@ class JSBakeResponseConstructor final : public JSC::InternalFunction {

static JSC::EncodedJSValue JSC_HOST_CALL_ATTRIBUTES call(JSC::JSGlobalObject* lexicalGlobalObject, JSC::CallFrame* callFrame)
{
Zig::GlobalObject* globalObject = reinterpret_cast<Zig::GlobalObject*>(lexicalGlobalObject);
Zig::GlobalObject* globalObject = static_cast<Zig::GlobalObject*>(lexicalGlobalObject);
JSC::VM& vm = globalObject->vm();
auto scope = DECLARE_THROW_SCOPE(vm);

Expand Down Expand Up @@ -300,7 +300,7 @@ Structure* createJSBakeResponseStructure(JSC::VM& vm, Zig::GlobalObject* globalO

void setupJSBakeResponseClassStructure(JSC::LazyClassStructure::Initializer& init)
{
auto* zigGlobal = reinterpret_cast<Zig::GlobalObject*>(init.global);
auto* zigGlobal = static_cast<Zig::GlobalObject*>(init.global);
auto* prototype = JSC::constructEmptyObject(zigGlobal, zigGlobal->JSResponsePrototype());

auto* constructorStructure = JSBakeResponseConstructor::createStructure(init.vm, init.global, init.global->functionPrototype());
Expand Down
6 changes: 3 additions & 3 deletions src/bun.js/bindings/JSBufferList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ JSC::JSValue JSBufferList::_getString(JSC::VM& vm, JSC::JSGlobalObject* lexicalG
JSC::JSValue JSBufferList::_getBuffer(JSC::VM& vm, JSC::JSGlobalObject* lexicalGlobalObject, size_t total)
{
auto throwScope = DECLARE_THROW_SCOPE(vm);
auto* subclassStructure = reinterpret_cast<Zig::GlobalObject*>(lexicalGlobalObject)->JSBufferSubclassStructure();
auto* subclassStructure = static_cast<Zig::GlobalObject*>(lexicalGlobalObject)->JSBufferSubclassStructure();

if (total <= 0 || length() == 0) {
// Buffer.alloc(0)
Expand Down Expand Up @@ -442,7 +442,7 @@ JSC::EncodedJSValue JSBufferListConstructor::construct(JSC::JSGlobalObject* lexi
{
auto& vm = JSC::getVM(lexicalGlobalObject);
JSBufferList* bufferList = JSBufferList::create(
vm, lexicalGlobalObject, reinterpret_cast<Zig::GlobalObject*>(lexicalGlobalObject)->JSBufferListStructure());
vm, lexicalGlobalObject, static_cast<Zig::GlobalObject*>(lexicalGlobalObject)->JSBufferListStructure());
return JSC::JSValue::encode(bufferList);
}

Expand All @@ -454,7 +454,7 @@ const ClassInfo JSBufferListConstructor::s_info = { "BufferList"_s, &Base::s_inf

JSValue getBufferList(Zig::GlobalObject* globalObject)
{
return reinterpret_cast<Zig::GlobalObject*>(globalObject)->JSBufferList();
return static_cast<Zig::GlobalObject*>(globalObject)->JSBufferList();
}

} // namespace Zig
2 changes: 1 addition & 1 deletion src/bun.js/bindings/JSDOMFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class JSDOMFile : public JSC::InternalFunction {
if (constructor != newTarget) {
auto scope = DECLARE_THROW_SCOPE(vm);

auto* functionGlobalObject = reinterpret_cast<Zig::GlobalObject*>(
auto* functionGlobalObject = static_cast<Zig::GlobalObject*>(
// ShadowRealm functions belong to a different global object.
getFunctionRealm(lexicalGlobalObject, newTarget));
RETURN_IF_EXCEPTION(scope, {});
Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/bindings/JSMockFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ DEFINE_VISIT_CHILDREN(MockWithImplementationCleanupData);

MockWithImplementationCleanupData* MockWithImplementationCleanupData::create(JSC::JSGlobalObject* globalObject, JSMockFunction* fn, JSValue impl, JSValue tail, JSValue fallback)
{
auto* obj = create(globalObject->vm(), reinterpret_cast<Zig::GlobalObject*>(globalObject)->mockModule.mockWithImplementationCleanupDataStructure.getInitializedOnMainThread(globalObject));
auto* obj = create(globalObject->vm(), static_cast<Zig::GlobalObject*>(globalObject)->mockModule.mockWithImplementationCleanupDataStructure.getInitializedOnMainThread(globalObject));
obj->finishCreation(globalObject->vm(), fn, impl, tail, fallback);
return obj;
}
Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/bindings/JSStringDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ static JSC_DEFINE_CUSTOM_GETTER(jsStringDecoder_lastChar, (JSGlobalObject * lexi
JSStringDecoder* castedThis = jsStringDecoderCast(lexicalGlobalObject, JSC::JSValue::decode(thisValue), "lastChar"_s);
RETURN_IF_EXCEPTION(scope, {});
auto buffer = ArrayBuffer::create({ castedThis->m_lastChar, 4 });
auto* globalObject = reinterpret_cast<Zig::GlobalObject*>(lexicalGlobalObject);
auto* globalObject = static_cast<Zig::GlobalObject*>(lexicalGlobalObject);
JSC::JSUint8Array* uint8Array = JSC::JSUint8Array::create(lexicalGlobalObject, globalObject->JSBufferSubclassStructure(), WTFMove(buffer), 0, 4);
RELEASE_AND_RETURN(scope, JSC::JSValue::encode(uint8Array));
}
Expand Down
4 changes: 2 additions & 2 deletions src/bun.js/bindings/ModuleLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ DEFINE_VISIT_CHILDREN(PendingVirtualModuleResult);

PendingVirtualModuleResult* PendingVirtualModuleResult::create(JSC::JSGlobalObject* globalObject, const WTF::String& specifier, const WTF::String& referrer, bool wasModuleLock)
{
auto* virtualModule = create(globalObject->vm(), reinterpret_cast<Zig::GlobalObject*>(globalObject)->pendingVirtualModuleResultStructure());
auto* virtualModule = create(globalObject->vm(), static_cast<Zig::GlobalObject*>(globalObject)->pendingVirtualModuleResultStructure());
virtualModule->finishCreation(globalObject->vm(), specifier, referrer);
virtualModule->wasModuleMock = wasModuleLock;
return virtualModule;
Expand Down Expand Up @@ -1153,7 +1153,7 @@ BUN_DEFINE_HOST_FUNCTION(jsFunctionOnLoadObjectResultResolve, (JSC::JSGlobalObje

bool wasModuleMock = pendingModule->wasModuleMock;

JSC::JSValue result = handleVirtualModuleResult<false>(reinterpret_cast<Zig::GlobalObject*>(globalObject), objectResult, &res, &specifier, &referrer, wasModuleMock);
JSC::JSValue result = handleVirtualModuleResult<false>(static_cast<Zig::GlobalObject*>(globalObject), objectResult, &res, &specifier, &referrer, wasModuleMock);
if (!scope.exception() && !res.success) [[unlikely]] {
throwException(globalObject, scope, result);
}
Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/bindings/NapiClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void NapiClass::finishCreation(VM& vm, NativeExecutable* executable, const Strin
Base::finishCreation(vm, executable, 0, name);
ASSERT(inherits(info()));
this->m_constructor = constructor;
auto globalObject = reinterpret_cast<Zig::GlobalObject*>(this->globalObject());
auto globalObject = static_cast<Zig::GlobalObject*>(this->globalObject());

this->putDirect(vm, vm.propertyNames->name, jsString(vm, name), JSC::PropertyAttribute::DontEnum | 0);

Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/bindings/NodeFSStatBinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ inline JSValue constructJSStatsObject(JSC::JSGlobalObject* lexicalGlobalObject,

if (constructor != newTarget) {
auto scope = DECLARE_THROW_SCOPE(vm);
auto* functionGlobalObject = reinterpret_cast<Zig::GlobalObject*>(
auto* functionGlobalObject = static_cast<Zig::GlobalObject*>(
// ShadowRealm functions belong to a different global object.
getFunctionRealm(lexicalGlobalObject, newTarget));
RETURN_IF_EXCEPTION(scope, {});
Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/bindings/NodeFSStatFSBinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ inline JSValue constructJSStatFSObject(JSC::JSGlobalObject* lexicalGlobalObject,

if (constructor != newTarget) {
auto scope = DECLARE_THROW_SCOPE(vm);
auto* functionGlobalObject = reinterpret_cast<Zig::GlobalObject*>(
auto* functionGlobalObject = static_cast<Zig::GlobalObject*>(
// ShadowRealm functions belong to a different global object.
getFunctionRealm(lexicalGlobalObject, newTarget));
RETURN_IF_EXCEPTION(scope, {});
Expand Down
6 changes: 3 additions & 3 deletions src/bun.js/bindings/ScriptExecutionContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,18 +369,18 @@ ScriptExecutionContext* executionContext(JSC::JSGlobalObject* globalObject)
void ScriptExecutionContext::postTaskConcurrently(Function<void(ScriptExecutionContext&)>&& lambda)
{
auto* task = new EventLoopTask(WTFMove(lambda));
reinterpret_cast<Zig::GlobalObject*>(m_globalObject)->queueTaskConcurrently(task);
static_cast<Zig::GlobalObject*>(m_globalObject)->queueTaskConcurrently(task);
}
// Executes the task on context's thread asynchronously.
void ScriptExecutionContext::postTask(Function<void(ScriptExecutionContext&)>&& lambda)
{
auto* task = new EventLoopTask(WTFMove(lambda));
reinterpret_cast<Zig::GlobalObject*>(m_globalObject)->queueTask(task);
static_cast<Zig::GlobalObject*>(m_globalObject)->queueTask(task);
}
// Executes the task on context's thread asynchronously.
void ScriptExecutionContext::postTask(EventLoopTask* task)
{
reinterpret_cast<Zig::GlobalObject*>(m_globalObject)->queueTask(task);
static_cast<Zig::GlobalObject*>(m_globalObject)->queueTask(task);
}

// Zig bindings
Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/bindings/ZigGlobalObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3627,7 +3627,7 @@ JSC_DEFINE_HOST_FUNCTION(jsFunctionCheckBufferRead, (JSC::JSGlobalObject * globa
}
extern "C" EncodedJSValue Bun__assignStreamIntoResumableSink(JSC::JSGlobalObject* globalObject, JSC::EncodedJSValue stream, JSC::EncodedJSValue sink)
{
Zig::GlobalObject* globalThis = reinterpret_cast<Zig::GlobalObject*>(globalObject);
Zig::GlobalObject* globalThis = static_cast<Zig::GlobalObject*>(globalObject);
return globalThis->assignStreamToResumableSink(JSValue::decode(stream), JSValue::decode(sink));
}
EncodedJSValue GlobalObject::assignStreamToResumableSink(JSValue stream, JSValue sink)
Expand Down
Loading