aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/bindings/ZigGlobalObject.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-03-01 00:47:31 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-03-01 00:47:31 -0800
commit114c0e8ed2a0eea835139ece3677efce09a8b702 (patch)
treebb1c4f6d3e3514585728b29ddf3d4d052e223b15 /src/javascript/jsc/bindings/ZigGlobalObject.cpp
parent9ccb520e9e93cf85227eb37febec6acdf45bd9cf (diff)
downloadbun-114c0e8ed2a0eea835139ece3677efce09a8b702.tar.gz
bun-114c0e8ed2a0eea835139ece3677efce09a8b702.tar.zst
bun-114c0e8ed2a0eea835139ece3677efce09a8b702.zip
[bun.js] Implement `setTimeout`, `setInterval`, `clearTimeout`, `clearInterval`
Diffstat (limited to 'src/javascript/jsc/bindings/ZigGlobalObject.cpp')
-rw-r--r--src/javascript/jsc/bindings/ZigGlobalObject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/javascript/jsc/bindings/ZigGlobalObject.cpp b/src/javascript/jsc/bindings/ZigGlobalObject.cpp
index dd9982737..a3ec63516 100644
--- a/src/javascript/jsc/bindings/ZigGlobalObject.cpp
+++ b/src/javascript/jsc/bindings/ZigGlobalObject.cpp
@@ -507,28 +507,28 @@ void GlobalObject::installAPIGlobals(JSClassRef* globals, int count)
extraStaticGlobals.uncheckedAppend(
GlobalPropertyInfo { setTimeoutIdentifier,
JSC::JSFunction::create(vm(), JSC::jsCast<JSC::JSGlobalObject*>(this), 0,
- "setTimeout", functionQueueMicrotask),
+ "setTimeout", functionSetTimeout),
JSC::PropertyAttribute::DontDelete | 0 });
JSC::Identifier clearTimeoutIdentifier = JSC::Identifier::fromString(vm(), "clearTimeout"_s);
extraStaticGlobals.uncheckedAppend(
GlobalPropertyInfo { clearTimeoutIdentifier,
JSC::JSFunction::create(vm(), JSC::jsCast<JSC::JSGlobalObject*>(this), 0,
- "clearTimeout", functionQueueMicrotask),
+ "clearTimeout", functionClearTimeout),
JSC::PropertyAttribute::DontDelete | 0 });
JSC::Identifier setIntervalIdentifier = JSC::Identifier::fromString(vm(), "setInterval"_s);
extraStaticGlobals.uncheckedAppend(
GlobalPropertyInfo { setIntervalIdentifier,
JSC::JSFunction::create(vm(), JSC::jsCast<JSC::JSGlobalObject*>(this), 0,
- "setInterval", functionQueueMicrotask),
+ "setInterval", functionSetInterval),
JSC::PropertyAttribute::DontDelete | 0 });
JSC::Identifier clearIntervalIdentifier = JSC::Identifier::fromString(vm(), "clearInterval"_s);
extraStaticGlobals.uncheckedAppend(
GlobalPropertyInfo { clearIntervalIdentifier,
JSC::JSFunction::create(vm(), JSC::jsCast<JSC::JSGlobalObject*>(this), 0,
- "clearInterval", functionQueueMicrotask),
+ "clearInterval", functionClearInterval),
JSC::PropertyAttribute::DontDelete | 0 });
auto clientData = Bun::clientData(vm());