Skip to content

Commit

Permalink
fix: work around Firefox's lack of Error.stackTraceLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Feb 24, 2021
1 parent cbf83be commit 94eaa4a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/dapp-svelte-wallet/ui/src/install-ses-lockdown.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import 'ses/lockdown';
import '@agoric/eventual-send/shim';

lockdown({ errorTaming: 'unsafe' });
lockdown();

// 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;
// FIXME: The claim is the following should work:
// Error.stackTraceLimit = Infinity;
try {
Error.stackTraceLimit = Infinity;
} catch (e) {
console.log('NOTE:', e);
}

0 comments on commit 94eaa4a

Please sign in to comment.