perf(cli): use new deno_core timers (#22569)

Improves #19100 

Fixes #20356

Replaces #20428



Changes made in deno_core to support this:

 - [x] Errors must be handled in setTimeout callbacks
 - [x] Microtask ordering is not-quite-right
 - [x] Timer cancellation must be checked right before dispatch
 - [x] Timer sanitizer
 - [x] Move high-res timer to deno_core
 - [x] Timers need opcall tracing
This commit is contained in:
Matt Mastracci 2024-03-01 11:15:18 -07:00 committed by GitHub
parent 7ac0408330
commit 736b91edd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 190 additions and 569 deletions

View file

@ -457,7 +457,6 @@ function runtimeStart(
tsVersion,
target,
) {
core.setMacrotaskCallback(timers.handleTimerMacrotask);
core.setWasmStreamingCallback(fetch.handleWasmStreaming);
core.setReportExceptionCallback(event.reportException);
op_set_format_exception_callback(formatException);