diff --git a/src/node_errors.h b/src/node_errors.h index eb120c62807..b2f2b256c4c 100644 --- a/src/node_errors.h +++ b/src/node_errors.h @@ -22,6 +22,7 @@ namespace node { #define ERRORS_WITH_CODE(V) \ V(ERR_BUFFER_OUT_OF_BOUNDS, RangeError) \ + V(ERR_BUFFER_TOO_LARGE, Error) \ V(ERR_INDEX_OUT_OF_RANGE, RangeError) \ V(ERR_INVALID_ARG_VALUE, TypeError) \ V(ERR_INVALID_ARG_TYPE, TypeError) \ @@ -31,7 +32,6 @@ namespace node { V(ERR_SCRIPT_EXECUTION_INTERRUPTED, Error) \ V(ERR_SCRIPT_EXECUTION_TIMEOUT, Error) \ V(ERR_STRING_TOO_LONG, Error) \ - V(ERR_BUFFER_TOO_LARGE, Error) #define V(code, type) \ inline v8::Local code(v8::Isolate* isolate, \