Skip to content

Commit 01aa058

Browse files
addaleaxMylesBorins
authored andcommitted
src: order C++ error list alphabetically
PR-URL: #20707 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 5eb0765 commit 01aa058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_errors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ namespace node {
1818

1919
#define ERRORS_WITH_CODE(V) \
2020
V(ERR_BUFFER_OUT_OF_BOUNDS, RangeError) \
21+
V(ERR_BUFFER_TOO_LARGE, Error) \
2122
V(ERR_INDEX_OUT_OF_RANGE, RangeError) \
2223
V(ERR_INVALID_ARG_VALUE, TypeError) \
2324
V(ERR_INVALID_ARG_TYPE, TypeError) \
2425
V(ERR_MEMORY_ALLOCATION_FAILED, Error) \
2526
V(ERR_MISSING_ARGS, TypeError) \
2627
V(ERR_MISSING_MODULE, Error) \
2728
V(ERR_STRING_TOO_LONG, Error) \
28-
V(ERR_BUFFER_TOO_LARGE, Error)
2929

3030
#define V(code, type) \
3131
inline v8::Local<v8::Value> code(v8::Isolate* isolate, \

0 commit comments

Comments
 (0)