From df8cb401a0b847b692369e54fcc456d1fc10f09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 27 Dec 2017 15:18:42 +0100 Subject: [PATCH] errors: remove ERR_OUTOFMEMORY Backport-PR-URL: https://github.com/nodejs/node/pull/18099 PR-URL: https://github.com/nodejs/node/pull/17877 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca --- doc/api/errors.md | 5 ----- lib/internal/errors.js | 1 - 2 files changed, 6 deletions(-) diff --git a/doc/api/errors.md b/doc/api/errors.md index 73fd1d52cbeedc..8f3ca432e42e22 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1284,11 +1284,6 @@ A Node.js API was called in an unsupported manner. For example: `Buffer.write(string, encoding, offset[, length])` - -### ERR_OUTOFMEMORY - -An operation caused an out-of-memory condition. - ### ERR_OUT_OF_RANGE diff --git a/lib/internal/errors.js b/lib/internal/errors.js index 807e8e76909b76..6596f096c76ce4 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -319,7 +319,6 @@ E('ERR_NAPI_CONS_PROTOTYPE_OBJECT', 'Constructor.prototype must be an object'); E('ERR_NO_CRYPTO', 'Node.js is not compiled with OpenSSL crypto support'); E('ERR_NO_ICU', '%s is not supported on Node.js compiled without ICU'); E('ERR_NO_LONGER_SUPPORTED', '%s is no longer supported'); -E('ERR_OUTOFMEMORY', 'Out of memory'); E('ERR_OUT_OF_RANGE', 'The "%s" argument is out of range'); E('ERR_PARSE_HISTORY_DATA', 'Could not parse history data in %s'); E('ERR_REQUIRE_ESM', 'Must use import to load ES Module: %s');