summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/trace_events.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/trace_events.ts')
-rw-r--r--ext/node/polyfills/trace_events.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/node/polyfills/trace_events.ts b/ext/node/polyfills/trace_events.ts
new file mode 100644
index 000000000..bb3ea9745
--- /dev/null
+++ b/ext/node/polyfills/trace_events.ts
@@ -0,0 +1,27 @@
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+
+import { ERR_INVALID_ARG_TYPE } from "ext:deno_node/internal/errors.ts";
+
+class Tracing {
+ enabled = false;
+ categories = "";
+}
+
+function createTracing(opts) {
+ if (typeof opts !== "object" || opts == null) {
+ throw new ERR_INVALID_ARG_TYPE("options", "Object", opts);
+ }
+
+ return new Tracing(opts);
+}
+
+function getEnabledCategories() {
+ return "";
+}
+
+export { createTracing, getEnabledCategories };
+
+export default {
+ createTracing,
+ getEnabledCategories,
+};