File tree Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const Readable = Stream.Readable;
1919const Writable = Stream . Writable ;
2020
2121const kMinPoolSpace = 128 ;
22- const kMaxLength = require ( 'smalloc' ) . kMaxLength ;
22+ const kMaxLength = require ( 'internal/ smalloc' ) . kMaxLength ;
2323
2424const O_APPEND = constants . O_APPEND || 0 ;
2525const O_CREAT = constants . O_CREAT || 0 ;
Original file line number Diff line number Diff line change 11'use strict' ;
22
3- const smalloc = require ( 'internal/smalloc' ) ;
4- const deprecate = require ( 'util' ) . deprecate ;
3+ const util = require ( 'internal/util' ) ;
54
6- exports . alloc =
7- deprecate ( smalloc . alloc , 'smalloc.alloc: Deprecated, use typed arrays' ) ;
8-
9- exports . copyOnto =
10- deprecate ( smalloc . copyOnto ,
11- 'smalloc.copyOnto: Deprecated, use typed arrays' ) ;
12-
13- exports . dispose =
14- deprecate ( smalloc . dispose ,
15- 'smalloc.dispose: Deprecated, use typed arrays' ) ;
16-
17- exports . hasExternalData =
18- deprecate ( smalloc . hasExternalData ,
19- 'smalloc.hasExternalData: Deprecated, use typed arrays' ) ;
20-
21- Object . defineProperty ( exports , 'kMaxLength' , {
22- enumerable : true , value : smalloc . kMaxLength , writable : false
23- } ) ;
24-
25- Object . defineProperty ( exports , 'Types' , {
26- enumerable : true , value : Object . freeze ( smalloc . Types ) , writable : false
27- } ) ;
5+ module . exports = require ( 'internal/smalloc' ) ;
6+ util . printDeprecationMessage ( 'smalloc is deprecated.' ) ;
You can’t perform that action at this time.
0 commit comments