// Ensure that a NativeError can be converted to JSON.

try {
  somethingUndefined();
} catch (ud) {
  JSON.stringify(ud);
}

try {
  throw new Error("Error with a message");
} catch (ex) {
  JSON.stringify(ex);
}

"success";
