File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 412412 'async_wrap' ,
413413 'url' ,
414414 'spawn_sync' ,
415- 'js_stream' ] ) ;
415+ 'js_stream' ,
416+ 'zlib' ] ) ;
416417 process . binding = function binding ( name ) {
417418 return internalBindingWhitelist . has ( name ) ?
418419 internalBinding ( name ) :
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const {
3636 isArrayBufferView
3737 }
3838} = require ( 'util' ) ;
39- const binding = process . binding ( 'zlib' ) ;
39+ const binding = internalBinding ( 'zlib' ) ;
4040const assert = require ( 'assert' ) . ok ;
4141const {
4242 Buffer,
Original file line number Diff line number Diff line change @@ -850,4 +850,4 @@ void DefineZlibConstants(Local<Object> target) {
850850
851851} // namespace node
852852
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
12'use strict' ;
23
34const common = require ( '../common' ) ;
@@ -8,7 +9,8 @@ const { checkInvocations } = require('./hook-checks');
89const hooks = initHooks ( ) ;
910
1011hooks . enable ( ) ;
11- const Zlib = process . binding ( 'zlib' ) . Zlib ;
12+ const { internalBinding } = require ( 'internal/test/binding' ) ;
13+ const { Zlib } = internalBinding ( 'zlib' ) ;
1214const constants = process . binding ( 'constants' ) . zlib ;
1315
1416const handle = new Zlib ( constants . DEFLATE ) ;
You can’t perform that action at this time.
0 commit comments