| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ const { | |||
| 15 | 15 | ERR_OUT_OF_RANGE, | |
| 16 | 16 | ERR_STREAM_DESTROYED | |
| 17 | 17 | } = require('internal/errors').codes; | |
| 18 | - const internalUtil = require('internal/util'); | ||
| 18 | + const { deprecate } = require('internal/util'); | ||
| 19 | 19 | const { validateNumber } = require('internal/validators'); | |
| 20 | 20 | const fs = require('fs'); | |
| 21 | 21 | const { Buffer } = require('buffer'); | |
@@ -142,7 +142,7 @@ function ReadStream(path, options) { | |||
| 142 | 142 | ObjectSetPrototypeOf(ReadStream.prototype, Readable.prototype); | |
| 143 | 143 | ObjectSetPrototypeOf(ReadStream, Readable); | |
| 144 | 144 | ||
| 145 | - const openReadFs = internalUtil.deprecate(function() { | ||
| 145 | + const openReadFs = deprecate(function() { | ||
| 146 | 146 | _openReadFs(this); | |
| 147 | 147 | }, 'ReadStream.prototype.open() is deprecated', 'DEP0135'); | |
| 148 | 148 | ReadStream.prototype.open = openReadFs; | |
@@ -370,7 +370,7 @@ WriteStream.prototype._final = function(callback) { | |||
| 370 | 370 | callback(); | |
| 371 | 371 | }; | |
| 372 | 372 | ||
| 373 | - const openWriteFs = internalUtil.deprecate(function() { | ||
| 373 | + const openWriteFs = deprecate(function() { | ||
| 374 | 374 | _openWriteFs(this); | |
| 375 | 375 | }, 'WriteStream.prototype.open() is deprecated', 'DEP0135'); | |
| 376 | 376 | WriteStream.prototype.open = openWriteFs; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments