Skip to content

Commit

Permalink
fix: install policy should default to unlimited stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Oct 21, 2020
1 parent 9138d06 commit c6cc1a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/dapp-svelte-wallet/ui/src/install-ses-lockdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
4 changes: 4 additions & 0 deletions packages/install-ses/install-ses.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit c6cc1a6

Please sign in to comment.