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
4 lines
218 B
JavaScript
4 lines
218 B
JavaScript
import { analyze } from "./packages/compiler/dist/index.js";
|
|
const { coverage } = analyze("tests/corpus/async-hooks-execution-ids.cjs", {});
|
|
console.log(JSON.stringify(coverage.runtimeFences, null, 1).slice(0, 3000));
|