From 12756495310f822ff78e53fdf0e404eb5c9b8b88 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 f5f12077742aef..45f7560a5ecbe7 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -642,6 +642,10 @@ It can be constructed in a variety of ways.