Adds options.stackFunction for passing to error.prepareStackTrace