From eb176457a197444f34c6ba5919e4fadca51e75b9 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 38b7a619d8a288..ac685b9cd5c576 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -644,6 +644,10 @@ It can be constructed in a variety of ways.