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');