Fix "Uncaught undefined" in Chrome
Apply
MODIFY
src/realmFacade.js
src/realmFacade.js
@@ -47,7 +47,7 @@ export function buildChildRealm(unsafeRec, BaseRealm) {
// 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

Apply https://github.com/michaelfig/proposal-realms/commit/f24b25b00afe8d8b58e0b3fd61d64cddbb75971a (#6)