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 1
1
'use strict' ;
2
2
3
3
const inspector = require ( 'inspector' ) ;
4
- const { promisify } = require ( 'util' ) ;
5
- const { FunctionPrototypeBind } = primordials ;
4
+ const { promisify } = require ( 'internal/ util' ) ;
5
+
6
6
class 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
17
8
}
9
+ Session . prototype . post = promisify ( inspector . Session . prototype . post ) ;
18
10
19
11
module . exports = {
20
12
...inspector ,
You can’t perform that action at this time.
0 commit comments