Skip to content

Commit b1c3b6b

Browse files
committed
refactor: return timeoutID using .setNumber()
1 parent e4c40ac commit b1c3b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internalBinding/timers.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static bool enqueueWithDelay(JSContext *cx, unsigned argc, JS::Value *vp) {
3232
PyEventLoop::AsyncHandle handle = loop.enqueueWithDelay(job, delaySeconds);
3333

3434
// Return the `timeoutID` to use in `clearTimeout`
35-
args.rval().setDouble((double)PyEventLoop::AsyncHandle::getUniqueId(std::move(handle)));
35+
args.rval().setNumber(PyEventLoop::AsyncHandle::getUniqueId(std::move(handle)));
3636
return true;
3737
}
3838

0 commit comments

Comments
 (0)