aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGlobalObject.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-08-27 23:46:05 -0700
committerGravatar GitHub <noreply@github.com> 2022-08-27 23:46:05 -0700
commitaf5c4dedca550a856486ec8bbc9f6da76396496e (patch)
tree618a42aed0eb46e9a726fc58731358b3bb7cbc27 /src/bun.js/bindings/ZigGlobalObject.cpp
parent8b3afa5831b7ac5fcabb47138c67d60e86247cd3 (diff)
downloadbun-af5c4dedca550a856486ec8bbc9f6da76396496e.tar.gz
bun-af5c4dedca550a856486ec8bbc9f6da76396496e.tar.zst
bun-af5c4dedca550a856486ec8bbc9f6da76396496e.zip
Update WebKit (#1165)
* Update WebKit * Fix `DataView` and non-8 bit sized typed arrays with TextDecoder * New WebKit Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/bun.js/bindings/ZigGlobalObject.cpp')
-rw-r--r--src/bun.js/bindings/ZigGlobalObject.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/bun.js/bindings/ZigGlobalObject.cpp b/src/bun.js/bindings/ZigGlobalObject.cpp
index d68b763b5..05b5a3e29 100644
--- a/src/bun.js/bindings/ZigGlobalObject.cpp
+++ b/src/bun.js/bindings/ZigGlobalObject.cpp
@@ -356,7 +356,8 @@ const JSC::GlobalObjectMethodTable GlobalObject::s_globalObjectMethodTable = {
&supportsRichSourceInfo,
&shouldInterruptScript,
&javaScriptRuntimeFlags,
- &queueMicrotaskToEventLoop, // queueTaskToEventLoop
+ // &queueMicrotaskToEventLoop, // queueTaskToEventLoop
+ nullptr,
nullptr, // &shouldInterruptScriptBeforeTimeout,
&moduleLoaderImportModule, // moduleLoaderImportModule
&moduleLoaderResolve, // moduleLoaderResolve
@@ -698,8 +699,8 @@ static JSC_DEFINE_HOST_FUNCTION(functionQueueMicrotask,
}
// This is a JSC builtin function
- globalObject->queueMicrotask(JSC::createJSMicrotask(vm, job, JSC::JSValue {}, JSC::JSValue {},
- JSC::JSValue {}, JSC::JSValue {}));
+ globalObject->queueMicrotask(job, JSC::JSValue {}, JSC::JSValue {},
+ JSC::JSValue {}, JSC::JSValue {});
return JSC::JSValue::encode(JSC::jsUndefined());
}
@@ -726,8 +727,8 @@ static JSC_DEFINE_HOST_FUNCTION(functionSetTimeout,
}
if (callFrame->argumentCount() == 1) {
- globalObject->queueMicrotask(JSC::createJSMicrotask(vm, job, JSC::JSValue {}, JSC::JSValue {},
- JSC::JSValue {}, JSC::JSValue {}));
+ globalObject->queueMicrotask(job, JSC::JSValue {}, JSC::JSValue {},
+ JSC::JSValue {}, JSC::JSValue {});
return JSC::JSValue::encode(JSC::jsNumber(Bun__Timer__getNextID()));
}
@@ -2475,6 +2476,10 @@ void GlobalObject::visitChildrenImpl(JSCell* cell, Visitor& visitor)
thisObject->m_processObject.visit(visitor);
thisObject->m_performanceObject.visit(visitor);
+ for (auto& barrier : thisObject->m_thenables) {
+ visitor.append(barrier);
+ }
+
thisObject->visitGeneratedLazyClasses<Visitor>(thisObject, visitor);
visitor.append(thisObject->m_readableStreamToArrayBufferResolve);