From 9101630e0547f39df338064f49e10fd386fc13c6 Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Fri, 21 Apr 2023 19:05:08 +0900 Subject: [PATCH] doc: update error code of buffer According to use of `validateNumber`, error code is changed from ERR_INVALID_ARG_VALUE to ERR_OUT_OF_RANGE. Refs: https://github.com/nodejs/node/pull/45796 PR-URL: https://github.com/nodejs/node/pull/47617 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- doc/api/buffer.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index fb099f244164f9..2faf00cf74bb41 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -644,6 +644,10 @@ It can be constructed in a variety of ways.