mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
28 lines
547 B
TypeScript
28 lines
547 B
TypeScript
|
// 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,
|
||
|
};
|