summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/inspector/promises.js
blob: 3483e53f5e36f05759dfbfd748b44ac23a6005da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent and Node contributors. All rights reserved. MIT license.

import inspector from "node:inspector";
import { promisify } from "ext:deno_node/internal/util.mjs";

class Session extends inspector.Session {
  constructor() {
    super();
  }
}
Session.prototype.post = promisify(inspector.Session.prototype.post);

export * from "node:inspector";
export { Session };

export default {
  ...inspector,
  Session,
};