SpiderMonkey does not allow the non-standard Error.captureStackTrace()
function that prior versions of MongoDB supported. If you must record stack
traces, you can capture the Error().stack property as a workaround.