File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 412
412
'async_wrap' ,
413
413
'url' ,
414
414
'spawn_sync' ,
415
- 'js_stream' ] ) ;
415
+ 'js_stream' ,
416
+ 'zlib' ] ) ;
416
417
process . binding = function binding ( name ) {
417
418
return internalBindingWhitelist . has ( name ) ?
418
419
internalBinding ( name ) :
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const {
36
36
isArrayBufferView
37
37
}
38
38
} = require ( 'util' ) ;
39
- const binding = process . binding ( 'zlib' ) ;
39
+ const binding = internalBinding ( 'zlib' ) ;
40
40
const assert = require ( 'assert' ) . ok ;
41
41
const {
42
42
Buffer,
Original file line number Diff line number Diff line change @@ -850,4 +850,4 @@ void DefineZlibConstants(Local<Object> target) {
850
850
851
851
} // namespace node
852
852
853
- NODE_BUILTIN_MODULE_CONTEXT_AWARE (zlib, node::Initialize)
853
+ NODE_MODULE_CONTEXT_AWARE_INTERNAL (zlib, node::Initialize)
Original file line number Diff line number Diff line change
1
+ // Flags: --expose-internals
1
2
'use strict' ;
2
3
3
4
const common = require ( '../common' ) ;
@@ -8,7 +9,8 @@ const { checkInvocations } = require('./hook-checks');
8
9
const hooks = initHooks ( ) ;
9
10
10
11
hooks . enable ( ) ;
11
- const Zlib = process . binding ( 'zlib' ) . Zlib ;
12
+ const { internalBinding } = require ( 'internal/test/binding' ) ;
13
+ const { Zlib } = internalBinding ( 'zlib' ) ;
12
14
const constants = process . binding ( 'constants' ) . zlib ;
13
15
14
16
const handle = new Zlib ( constants . DEFLATE ) ;
You can’t perform that action at this time.
0 commit comments