pass onuncaughtException a serializable error obj

pass onuncaughtException a vanilla obj with stack

something like this COULD be done:
try {
  throw new Error('asdf');
} catch (e) {
  //at least in chrome, this makes the stack get computed and will then be serialized.
  e.stack = e.stack;
  var message = e.message;
  delete e.message;
  e.message = message;
  JSON.stringify(e);
}