arcjet-js
arcjet-js copied to clipboard
Timing functions are still broken
Even after #1858, there are still bugs with the log.time()
and log.timeEnd()
calls.
Since we run things async, one protect
call might call log.time()
and another might call log.timeEnd()
.
I think we need some unique ID to ensure the timing is correct. Otherwise we'll need to implement timing logic ourselves, using performance.now()
and probably returning an end function.