Skip to content

Commit

Permalink
fix(wallet-connection): add install-ses-lockdown.js
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Sep 25, 2021
1 parent e22032b commit d03c138
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/wallet-connection/demo/install-ses-lockdown.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import 'ses/lockdown';
import '@agoric/eventual-send/shim';

lockdown({
__allowUnsafeMonkeyPatching__: 'unsafe',
errorTaming: 'unsafe',
overrideTaming: 'severe',
});

// 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 d03c138

Please sign in to comment.