summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-11-03 22:45:40 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-11-06 20:58:40 +0800
commit5850220229cdd8b62f6d5022779af7c232231d64 (patch)
tree7dbb9c7d94be088bebf535ec41ed4a8096af847e /node.gyp
parent7b1297d856dbd9af85c18478301b234caebf04e4 (diff)
downloadandroid-node-v8-5850220229cdd8b62f6d5022779af7c232231d64.tar.gz
android-node-v8-5850220229cdd8b62f6d5022779af7c232231d64.tar.bz2
android-node-v8-5850220229cdd8b62f6d5022779af7c232231d64.zip
src: move error handling code into node_errors.cc
Move the following code into a new node_errors.cc file and declare them in node_errors.h for clarity and make it possible to include them with node_errors.h. - AppendExceptionLine() - DecorateErrorStack() - FatalError() - OnFatalError() - PrintErrorString() - FatalException() - ReportException() - FatalTryCatch And move the following definitions (declared elsewhere than node_errors.h) to node_errors.cc: - Abort() (in util.h) - Assert() (in util.h) PR-URL: https://github.com/nodejs/node/pull/24058 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 13c21e33ee..5a42d2b714 100644
--- a/node.gyp
+++ b/node.gyp
@@ -345,6 +345,7 @@
'src/node_domain.cc',
'src/node_encoding.cc',
'src/node_errors.h',
+ 'src/node_errors.cc',
'src/node_file.cc',
'src/node_http2.cc',
'src/node_http_parser.cc',