Fix "Uncaught undefined" in Chrome.
MODIFY
src/bundle/createSES.js
src/bundle/createSES.js
@@ -173,7 +173,7 @@ export function createSESInThisRealm(global, creatorStrings, parentRealm) {
// they aren't useful for an attack.
eName = `${err.name}`;
eMessage = `${err.message}`;
- eStack = `${err.stack}`;
+ eStack = `${err.stack || eMessage}`;
// eName/eMessage/eStack are now child-realm primitive strings, and
// safe to expose
} catch (ignored) {

MODIFY
src/bundle/make-console.js
src/bundle/make-console.js
@@ -42,7 +42,7 @@ export default function makeConsole(parentConsole) {
// they aren't useful for an attack.
eName = `${err.name}`;
eMessage = `${err.message}`;
- eStack = `${err.stack}`;
+ eStack = `${err.stack || eMessage}`;
// eName/eMessage/eStack are now child-realm primitive strings, and
// safe to expose
} catch (ignored) {

Fix "Uncaught undefined" in Chrome.