From c6cc1a6850b60f49d309db0e03778f28f6998a91 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Tue, 20 Oct 2020 21:31:11 -0700 Subject: [PATCH] fix: install policy should default to unlimited stacks --- packages/dapp-svelte-wallet/ui/src/install-ses-lockdown.js | 4 ++++ packages/install-ses/install-ses.js | 4 ++++ 2 files changed, 8 insertions(+) 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;