mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
9926b89a99
Limit the effect of users mutating `node:util`, `node:inspector`, or `Array.prototype`. PR-URL: https://github.com/nodejs/node/pull/45041 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
15 lines
343 B
JavaScript
15 lines
343 B
JavaScript
'use strict';
|
|
|
|
const inspector = require('inspector');
|
|
const { promisify } = require('internal/util');
|
|
|
|
class Session extends inspector.Session {
|
|
constructor() { super(); } // eslint-disable-line no-useless-constructor
|
|
}
|
|
Session.prototype.post = promisify(inspector.Session.prototype.post);
|
|
|
|
module.exports = {
|
|
...inspector,
|
|
Session,
|
|
};
|