diff --git a/packages/dapp-svelte-wallet/ui/src/install-ses-lockdown.js b/packages/dapp-svelte-wallet/ui/src/install-ses-lockdown.js index a21c423eb22..b677640600c 100644 --- a/packages/dapp-svelte-wallet/ui/src/install-ses-lockdown.js +++ b/packages/dapp-svelte-wallet/ui/src/install-ses-lockdown.js @@ -2,3 +2,7 @@ import 'ses/lockdown'; import '@agoric/eventual-send/shim'; lockdown({ errorTaming: 'unsafe' }); + +// Even on non-v8, we tame the start compartment's Error constructor so +// this assignment is not rejected, even if it does nothing. +Error.stackTraceLimit = Infinity; diff --git a/packages/install-ses/install-ses.js b/packages/install-ses/install-ses.js index ace687f85e9..956bc1c223c 100644 --- a/packages/install-ses/install-ses.js +++ b/packages/install-ses/install-ses.js @@ -14,3 +14,7 @@ lockdown({ errorTaming: 'unsafe' }); // 'Compartment' and 'harden' (and `StaticModuleRecord`) are now present in // our global scope. + +// Even on non-v8, we tame the start compartment's Error constructor so +// this assignment is not rejected, even if it does nothing. +Error.stackTraceLimit = Infinity;