From a82b1b7b30d52cd6a3ea9f129cdc3d83e0370a34 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 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 36df9b24a6d993..f0d7da3aeaaf23 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1332,11 +1332,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 db501a1d3cfec8..ab6a2586e8ccd9 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -436,7 +436,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', outOfRange); E('ERR_PARSE_HISTORY_DATA', 'Could not parse history data in %s'); E('ERR_REQUIRE_ESM', 'Must use import to load ES Module: %s');