Comparing version 0.15.21 to 0.15.22
@@ -6,2 +6,11 @@ # Change Log | ||
### [0.15.22](https://github.com/endojs/endo/compare/ses@0.15.21...ses@0.15.22) (2022-09-14) | ||
### Bug Fixes | ||
* alt syntax for positive but faster assertions ([#1280](https://github.com/endojs/endo/issues/1280)) ([dc24f2f](https://github.com/endojs/endo/commit/dc24f2f2c3cac7ce239a64c503493c41a2334315)) | ||
### [0.15.21](https://github.com/endojs/endo/compare/ses@0.15.20...ses@0.15.21) (2022-08-26) | ||
@@ -8,0 +17,0 @@ |
{ | ||
"name": "ses", | ||
"version": "0.15.21", | ||
"version": "0.15.22", | ||
"description": "Hardened JavaScript for Fearless Cooperation", | ||
@@ -62,5 +62,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@endo/compartment-mapper": "^0.7.11", | ||
"@endo/compartment-mapper": "^0.7.12", | ||
"@endo/eslint-config": "^0.5.1", | ||
"@endo/static-module-record": "^0.7.10", | ||
"@endo/static-module-record": "^0.7.11", | ||
"@endo/test262-runner": "^0.1.28", | ||
@@ -183,3 +183,3 @@ "ava": "^3.12.1", | ||
}, | ||
"gitHead": "5935c16158f239ef9ad5a0c5443e02fed537cb6e" | ||
"gitHead": "44b17d92334592b2da54d91dba73f28db513412a" | ||
} |
@@ -110,6 +110,10 @@ // @ts-check | ||
} | ||
assert( | ||
setting === undefined || typeof setting === 'string', | ||
X`Environment option value ${q(setting)}, if present, must be a string.`, | ||
); | ||
setting === undefined || | ||
typeof setting === 'string' || | ||
// eslint-disable-next-line @endo/no-polymorphic-call | ||
assert.fail( | ||
X`Environment option value ${q( | ||
setting, | ||
)}, if present, must be a string.`, | ||
); | ||
return setting; | ||
@@ -116,0 +120,0 @@ }; |
@@ -78,3 +78,3 @@ # Logging Errors | ||
JavaScript itself is not a dustributed language, but it is a highly asynchronous language. Our distributed computational model—communicating event loops—pushes much of our code into making heavy use of this asynchrony. For such code, individual synchronous call stacks are often short and uninformative. [Causeway](https://github.com/Agoric/agoric-sdk/issues/1318#issuecomment-662127549) shows that the asynchronous and distributed analog of synchronous stack traces is a directed acyclic graph of prior causal events, each with their local synchronous stack at their moment of causation. To capture this well requires instrumenting the promise system in ways impossible for user code. However, the most important causal paths are | ||
* the [eventual-send](https://github.com/tc39/proposal-eventual-send) operations by [handled promise](https://github.com/Agoric/agoric-sdk/tree/master/packages/eventual-send), whether expressed by `E()` or `~.`. | ||
* the [eventual-send](https://github.com/tc39/proposal-eventual-send) operations by [handled promise](../../../eventual-send/README.md), whether expressed by `E()` or `~.`. | ||
* the `.then` operation. However, we replace the builtin `Promise.prototype.then` at our peril. Many built in operations implicitly invoke the original binding of `Promise.prototype.then` in ways we cannot override. However, our same eventual-send package already provides a safer alternative `E.when` operation. | ||
@@ -81,0 +81,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2824543
59492