mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
lib: add trailing commas to all public core modules
PR-URL: https://github.com/nodejs/node/pull/46848 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
This commit is contained in:
@@ -38,13 +38,13 @@ const {
|
||||
kSize,
|
||||
decode,
|
||||
flush,
|
||||
encodings
|
||||
encodings,
|
||||
} = internalBinding('string_decoder');
|
||||
const internalUtil = require('internal/util');
|
||||
const {
|
||||
ERR_INVALID_ARG_TYPE,
|
||||
ERR_INVALID_THIS,
|
||||
ERR_UNKNOWN_ENCODING
|
||||
ERR_UNKNOWN_ENCODING,
|
||||
} = require('internal/errors').codes;
|
||||
const isEncoding = Buffer[internalUtil.kIsEncodingSymbol];
|
||||
|
||||
@@ -147,7 +147,7 @@ ObjectDefineProperties(StringDecoder.prototype, {
|
||||
return TypedArrayPrototypeSubarray(this[kNativeDecoder],
|
||||
kIncompleteCharactersStart,
|
||||
kIncompleteCharactersEnd);
|
||||
}
|
||||
},
|
||||
},
|
||||
lastNeed: {
|
||||
__proto__: null,
|
||||
@@ -155,7 +155,7 @@ ObjectDefineProperties(StringDecoder.prototype, {
|
||||
enumerable: true,
|
||||
get() {
|
||||
return this[kNativeDecoder][kMissingBytes];
|
||||
}
|
||||
},
|
||||
},
|
||||
lastTotal: {
|
||||
__proto__: null,
|
||||
@@ -164,8 +164,8 @@ ObjectDefineProperties(StringDecoder.prototype, {
|
||||
get() {
|
||||
return this[kNativeDecoder][kBufferedBytes] +
|
||||
this[kNativeDecoder][kMissingBytes];
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
exports.StringDecoder = StringDecoder;
|
||||
|
||||
Reference in New Issue
Block a user