summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/trace_events.ts
blob: bb3ea97459ee01afe3f98715c018c337e02238dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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,
};