From 9ee9fbec9c149244e7396627d2abbfe307404515 Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Wed, 19 Apr 2023 18:53:19 +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 --- 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 f4b5b18a1b2374..87f5f3154e96d4 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -644,6 +644,10 @@ It can be constructed in a variety of ways.