mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-12-06 04:56:15 +08:00
* Compile async_hooks execution ids, createHook and asyncWrapProviders natively * Evaluate a createHook literal's members in source order and rehash promise resources into the new capacity * Commit an immediate's queue slot only after its init hook has run * Retire a promise's async resource when the promise is destroyed * Keep the runtime sound when an async hook reenters it * Release the auto-allocated buffer of a detached byte read
7 lines
376 B
JavaScript
7 lines
376 B
JavaScript
import { analyze } from "./packages/compiler/dist/index.js";
|
|
const { coverage } = analyze("tests/corpus/async-hooks-execution-ids.cjs", {});
|
|
console.log("keys:", Object.keys(coverage));
|
|
console.log("stats:", JSON.stringify(coverage.stats));
|
|
const extra = coverage.deferred ?? coverage.failures ?? coverage.fences;
|
|
console.log("extra:", JSON.stringify(extra)?.slice(0, 1500));
|