ses 0.15.21 → 0.15.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/lockdown.cjs +7 -3
- package/dist/lockdown.mjs +7 -3
- package/dist/lockdown.umd.js +7 -3
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +7 -3
- package/dist/ses.mjs +7 -3
- package/dist/ses.umd.js +7 -3
- package/dist/ses.umd.min.js +1 -1
- package/package.json +4 -4
- package/src/environment-options.js +8 -4
- package/src/error/README.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ses",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.22",
|
|
4
4
|
"description": "Hardened JavaScript for Fearless Cooperation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lockdown",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"test:platform-compatability": "node test/package/test.cjs"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@endo/compartment-mapper": "^0.7.
|
|
62
|
+
"@endo/compartment-mapper": "^0.7.12",
|
|
63
63
|
"@endo/eslint-config": "^0.5.1",
|
|
64
|
-
"@endo/static-module-record": "^0.7.
|
|
64
|
+
"@endo/static-module-record": "^0.7.11",
|
|
65
65
|
"@endo/test262-runner": "^0.1.28",
|
|
66
66
|
"ava": "^3.12.1",
|
|
67
67
|
"babel-eslint": "^10.0.3",
|
|
@@ -179,5 +179,5 @@
|
|
|
179
179
|
],
|
|
180
180
|
"timeout": "2m"
|
|
181
181
|
},
|
|
182
|
-
"gitHead": "
|
|
182
|
+
"gitHead": "44b17d92334592b2da54d91dba73f28db513412a"
|
|
183
183
|
}
|
|
@@ -107,10 +107,14 @@ export const makeEnvironmentCaptor = aGlobal => {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
setting === undefined ||
|
|
111
|
+
typeof setting === 'string' ||
|
|
112
|
+
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
113
|
+
assert.fail(
|
|
114
|
+
X`Environment option value ${q(
|
|
115
|
+
setting,
|
|
116
|
+
)}, if present, must be a string.`,
|
|
117
|
+
);
|
|
114
118
|
return setting;
|
|
115
119
|
};
|
|
116
120
|
freeze(getEnvironmentOption);
|
package/src/error/README.md
CHANGED
|
@@ -75,7 +75,7 @@ However, the above description violates one of our constraints: The automatic lo
|
|
|
75
75
|
This section explains our *plans* to build a logging experience on top of this system that supports local and distributed asynchrony. Also tracked at [Support deep stacks for local asynchronous log-based debugging #1862](https://github.com/Agoric/agoric-sdk/issues/1862) and [Support distributed deep stacks for log-based debugging #1864](https://github.com/Agoric/agoric-sdk/issues/1864).
|
|
76
76
|
|
|
77
77
|
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
|
|
78
|
-
* the [eventual-send](https://github.com/tc39/proposal-eventual-send) operations by [handled promise](
|
|
78
|
+
* the [eventual-send](https://github.com/tc39/proposal-eventual-send) operations by [handled promise](../../../eventual-send/README.md), whether expressed by `E()` or `~.`.
|
|
79
79
|
* 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.
|
|
80
80
|
|
|
81
81
|
Restricting the instrumentation to these two operations gives predictability and preserves platform independence, but at the loss of some useful diagnostic information. This loss may encourage programmers to shift from their current habits to eventual-send and `E.when`, which would be a good thing anyway.
|