diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2018-09-18 21:10:36 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2018-09-18 21:10:36 -0400 |
commit | f43ea7a6bb2a6c44f91506c32004241d3cbb24ae (patch) | |
tree | 1dff1f481a3439045f0de84a242e1ac33f201249 /src/mongo/base | |
parent | 78112be586c67efa877636d596b194650e90cbed (diff) | |
download | mongo-f43ea7a6bb2a6c44f91506c32004241d3cbb24ae.tar.gz |
SERVER-35154 Propagate JS exceptions through ScopedThread#join().
This makes it so that if the ScopedThread exited due to an uncaught
JavaScript exception, then calling .join() or .returnData() on it throws
a JavaScript exception with the error message and stacktrace intact.
Diffstat (limited to 'src/mongo/base')
-rw-r--r-- | src/mongo/base/error_codes.err | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/base/error_codes.err b/src/mongo/base/error_codes.err index 483498100a6..c4d3b46dc15 100644 --- a/src/mongo/base/error_codes.err +++ b/src/mongo/base/error_codes.err @@ -268,6 +268,7 @@ error_code("PreparedTransactionInProgress", 267); error_code("CannotBackup", 268); error_code("DataModifiedByRepair", 269); error_code("RepairedReplicaSetNode", 270); +error_code("JSInterpreterFailureWithStack", 271, extra="JSExceptionInfo") # Error codes 4000-8999 are reserved. # Non-sequential error codes (for compatibility only) |