File tree 2 files changed +4
-25
lines changed
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;
19
19
const Writable = Stream . Writable ;
20
20
21
21
const kMinPoolSpace = 128 ;
22
- const kMaxLength = require ( 'smalloc' ) . kMaxLength ;
22
+ const kMaxLength = require ( 'internal/ smalloc' ) . kMaxLength ;
23
23
24
24
const O_APPEND = constants . O_APPEND || 0 ;
25
25
const O_CREAT = constants . O_CREAT || 0 ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const smalloc = require ( 'internal/smalloc' ) ;
4
- const deprecate = require ( 'util' ) . deprecate ;
3
+ const util = require ( 'internal/util' ) ;
5
4
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