File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33const inspector = require ( 'inspector' ) ;
4- const { promisify } = require ( 'util' ) ;
5- const { FunctionPrototypeBind } = primordials ;
4+ const { promisify } = require ( 'internal/ util' ) ;
5+
66class Session extends inspector . Session {
7- #post = promisify ( FunctionPrototypeBind ( super . post , this ) ) ;
8- /**
9- * Posts a message to the inspector back-end.
10- * @param {string } method
11- * @param {Record<unknown, unknown> } [params]
12- * @returns {Promise }
13- */
14- async post ( method , params ) {
15- return this . #post( method , params ) ;
16- }
7+ constructor ( ) { super ( ) ; } // eslint-disable-line no-useless-constructor
178}
9+ Session . prototype . post = promisify ( inspector . Session . prototype . post ) ;
1810
1911module . exports = {
2012 ...inspector ,
You can’t perform that action at this time.
0 commit comments