Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 19, 2021
1 parent 1030eba commit 44d61e4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/internal/streams/legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

const {
ArrayIsArray,
ObjectDefineProperty,
ObjectSetPrototypeOf,
MathMax,
NumberIsInteger,
} = primordials;
const {
Expand All @@ -13,7 +13,6 @@ const {
}
} = require('internal/errors');

const { Buffer } = require('buffer');
const EE = require('events');

function Stream(opts) {
Expand Down Expand Up @@ -122,10 +121,10 @@ function prependListener(emitter, event, fn) {

let defaultHighWaterMark = 16 * 1024;
ObjectDefineProperty(Stream, 'defaultHighWaterMark', {
get () {
get() {
return defaultHighWaterMark;
},
set (value) {
set(value) {
if (!NumberIsInteger(value)) {
throw ERR_INVALID_ARG_TYPE('value', 'Integer', value);
}
Expand All @@ -140,10 +139,10 @@ ObjectDefineProperty(Stream, 'defaultHighWaterMark', {

let defaultObjectModeHighWaterMark = 16;
ObjectDefineProperty(Stream, 'defaultObjectModeHighWaterMark', {
get () {
get() {
return defaultObjectModeHighWaterMark;
},
set (value) {
set(value) {
if (!NumberIsInteger(value)) {
throw ERR_INVALID_ARG_TYPE('value', 'Integer', value);
}
Expand Down

0 comments on commit 44d61e4

Please sign in to comment.