mirror of https://github.com/nodejs/node.git
362694401f
The old error name and message were trying to be consistent with ERR_BUFFER_TOO_LARGE but they were not really accurate. The kStringMaxLength was measured in number of characters, not number of bytes. The name ERR_STRING_TOO_LARGE also seems a bit awkward. This patch tries to correct them before they get released to users. PR-URL: https://github.com/nodejs/node/pull/19864 Refs: https://github.com/nodejs/node/pull/19739 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> |
||
---|---|---|
.. | ||
binding.cc | ||
binding.gyp | ||
test-stringbytes-external-at-max.js | ||
test-stringbytes-external-exceed-max-by-1-ascii.js | ||
test-stringbytes-external-exceed-max-by-1-base64.js | ||
test-stringbytes-external-exceed-max-by-1-binary.js | ||
test-stringbytes-external-exceed-max-by-1-hex.js | ||
test-stringbytes-external-exceed-max-by-1-utf8.js | ||
test-stringbytes-external-exceed-max-by-2.js | ||
test-stringbytes-external-exceed-max.js |