meta: enable jsdoc/check-tag-names rule · nodejs/node@324d9fc

@@ -268,6 +268,7 @@ function _copyActual(source, target, targetStart, sourceStart, sourceEnd) {

268268

* runtime deprecation would introduce too much breakage at this time. It's not

269269

* likely that the Buffer constructors would ever actually be removed.

270270

* Deprecation Code: DEP0005

271+

* @returns {Buffer}

271272

*/

272273

function Buffer(arg, encodingOrOffset, length) {

273274

showFlaggedDeprecation();

@@ -295,6 +296,10 @@ ObjectDefineProperty(Buffer, SymbolSpecies, {

295296

* Buffer.from(array)

296297

* Buffer.from(buffer)

297298

* Buffer.from(arrayBuffer[, byteOffset[, length]])

299+

* @param {any} value

300+

* @param {BufferEncoding|number} encodingOrOffset

301+

* @param {number} [length]

302+

* @returns {Buffer}

298303

*/

299304

Buffer.from = function from(value, encodingOrOffset, length) {

300305

if (typeof value === 'string')

@@ -391,6 +396,7 @@ ObjectSetPrototypeOf(Buffer, Uint8Array);

391396

/**

392397

* Creates a new filled Buffer instance.

393398

* alloc(size[, fill[, encoding]])

399+

* @returns {FastBuffer}

394400

*/

395401

Buffer.alloc = function alloc(size, fill, encoding) {

396402

validateNumber(size, 'size', 0, kMaxLength);

@@ -404,6 +410,7 @@ Buffer.alloc = function alloc(size, fill, encoding) {

404410

/**

405411

* Equivalent to Buffer(num), by default creates a non-zero-filled Buffer

406412

* instance. If `--zero-fill-buffers` is set, will zero-fill the buffer.

413+

* @returns {FastBuffer}

407414

*/

408415

Buffer.allocUnsafe = function allocUnsafe(size) {

409416

validateNumber(size, 'size', 0, kMaxLength);

@@ -414,6 +421,8 @@ Buffer.allocUnsafe = function allocUnsafe(size) {

414421

* Equivalent to SlowBuffer(num), by default creates a non-zero-filled

415422

* Buffer instance that is not allocated off the pre-initialized pool.

416423

* If `--zero-fill-buffers` is set, will zero-fill the buffer.

424+

* @param {number} size

425+

* @returns {FastBuffer|undefined}

417426

*/

418427

Buffer.allocUnsafeSlow = function allocUnsafeSlow(size) {

419428

validateNumber(size, 'size', 0, kMaxLength);