Describe the bug
Calling hardenIntrinsics() twice unknowingly, emits SES_ALREADY_LOCKED_DOWN
which isn't immediately clear it's because we're repairing twice
|
const hardenIntrinsics = repairIntrinsics(options); |
(also depending on the React Native version the stack trace may not be clear)
ideally we should emit either
1 SES_ALREADY_REPAIRED or SES_ALREADY_HARDENED (similar original behaviour)
2 ignore subsequent calls to hardenIntrinsics()
Steps to reproduce
Call hardenIntrinsics() more than once
Platform environment
Additional context
Screenshots

Describe the bug
Calling
hardenIntrinsics()twice unknowingly, emits SES_ALREADY_LOCKED_DOWNwhich isn't immediately clear it's because we're repairing twice
endo/packages/ses/src/lockdown-shim.js
Line 24 in bd96489
(also depending on the React Native version the stack trace may not be clear)
ideally we should emit either
1 SES_ALREADY_REPAIRED or SES_ALREADY_HARDENED (similar original behaviour)
2 ignore subsequent calls to
hardenIntrinsics()Steps to reproduce
Call
hardenIntrinsics()more than oncePlatform environment
Additional context
Screenshots