// Hardcoded module "node:trace_events" // This is a stub! This is not actually implemented yet. class Tracing { enabled = false; categories = ""; } function ERR_INVALID_ARG_TYPE(name, type, value) { const err = new TypeError(`The "${name}" argument must be of type ${type}. Received ${value}`); err.code = "ERR_INVALID_ARG_TYPE"; return err; } function createTracing(opts) { if (typeof opts !== "object" || opts == null) { // @ts-ignore throw new ERR_INVALID_ARG_TYPE("options", "Object", opts); } // TODO: validate categories // @ts-ignore return new Tracing(opts); } function getEnabledCategories() { return ""; } export default { createTracing, getEnabledCategories, }; 73f59a6b5f690b4c161'/> Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/microtask.test.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-06-22Fix bug with exceptions inside EventTargetGravatar Jarred Sumner 11-137/+413
2022-06-22Add a way to schedule microtasks from C++Gravatar Jarred Sumner 5-35/+77
2022-06-22Update javascript.zigGravatar Jarred Sumner 1-13/+152
2022-06-22Clean up perf hooks a littleGravatar Jarred Sumner 1-9/+21
2022-06-22use JSValue for `bun test`Gravatar Jarred Sumner 1-13/+19