ses@1.15.0
Minor Changes
-
#2895
1834932Thanks @gibson042! - - Addsassert.makeErrorand deprecatesassert.erroras an alias, matching
the API already exported from@endo/errors.- Before this version, the
assertleft in global scope beforelockdown
would redact errors and would be replaced bylockdownwith a version that
did not redact errors if the caller opted-in witherrorTaming
set to one of theunsafevariants.
After this version, the reverse is true: theassertleft in global scope
beforelockdowndoes not redact.
Then,lockdownreplacesassertwith a redactingassertunless the
caller opted-out witherrorTamingset to one of theunsafevariants.
- Before this version, the
-
#3008
a29ecd4Thanks @kriskowal! - -lockdownandrepairIntrinsicsnow detect when code has already called a
hardenimported from@endo/hardenbefore lockdown, and fail with a clear
error about hardened modules executing before lockdown.- Adds
Object[Symbol.for('harden')]as a variant ofglobalThis.hardenthat
cannot be overridden by an endowment namedhardenin compartments.
- Adds