ses 1.5.0 → 1.7.0

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/NEWS.md CHANGED
@@ -1,5 +1,66 @@
1
- User-visible changes in SES:
2
-
1
+ User-visible changes in `ses`:
2
+
3
+ # v1.6.0 (2024-07-30)
4
+
5
+ - *NOTICE*: This version introduces multiple features to converge upon a
6
+ more common standard for [Hardened JavaScript](https://hardenedjs.org).
7
+ All code should begin migrating to these usage patterns as the older
8
+ patterns are now deprecated and will not be supported in a future major
9
+ version of SES.
10
+
11
+ - To converge on a portable pattern for using `Compartment`, introduces an
12
+ `__options__` property for the first argument of the `Compartment`
13
+ constructor that must be `true` if present and indicates the object is the
14
+ options bag and not the global endowments. All code going forward should
15
+ include this flag until the next major version of SES, when we plan for it to
16
+ become vesgitial and drop support for three-argument `Compartment`
17
+ construction.
18
+
19
+ In the unlikely event that existing code names an endowment `__options__`,
20
+ that code will break and need to be adjusted to adopt this version.
21
+ Because we rate this unlikely, we have elected not to mark this with
22
+ a major version bump.
23
+
24
+ - Adds a `__noNamespaceBox__` option that aligns the behavior of the `import`
25
+ method on SES `Compartment` with the behavior of XS and the behavior we will
26
+ champion for compartment standards.
27
+ All use of `Compartment` should migrate to use this option as the standard
28
+ behavior will be enabled by default with the next major version of SES.
29
+
30
+ - Adds support for module descriptors better aligned with XS.
31
+ Compartments use module desriptors to load and link modules.
32
+ The importHook, importNowHook, and moduleMapHook all return module descriptors
33
+ (sometimes promises for module descriptors).
34
+ The modules option or argument to the Compatment constructor has module
35
+ descriptors for all its values.
36
+ - `{record, specifier, compartment}` should become `{source: record,
37
+ specifier, compartment}`.
38
+ - `{specifier, compartment}` should become `{source: specifier,
39
+ compartment}`.
40
+ - `{record: compartment.module(specifier)}` should become `{namespace:
41
+ specifier, compartment}`.
42
+
43
+ - When running transpiled code on Node, the SES error taming
44
+ gives line-numbers into the generated JavaScript, which often don't match the
45
+ the original lines. This happens even with the normal development-time
46
+ lockdown options setting,
47
+ ```js
48
+ errorTaming: 'unsafe'
49
+ ```
50
+ or setting the environment variable
51
+ ```sh
52
+ $ export LOCKDOWN_ERROR_TAMING=unsafe
53
+ ```
54
+ To get the original line numbers, this release
55
+ adds `'unsafe-debug'`. This `errorTaming: 'unsafe-debug'` setting
56
+ should be used ***during development only*** when you can
57
+ sacrifice more security for a better debugging experience, as explained at
58
+ [`errorTaming` Options](https://github.com/endojs/endo/blob/master/packages/ses/docs/lockdown.md#errortaming-options).
59
+ With this setting, when running transpiled code on Node (e.g. tests written
60
+ in TypeScript),
61
+ the stacktrace line-numbers point back into the original
62
+ source, as they do on Node without SES.
63
+
3
64
  # v1.5.0 (2024-05-06)
4
65
 
5
66
  - Adds `importNowHook` to the `Compartment` options. The compartment will invoke the hook whenever it encounters a missing dependency while running `compartmentInstance.importNow(specifier)`, which cannot use an asynchronous `importHook`.
@@ -392,7 +453,7 @@ User-visible changes in SES:
392
453
  for an example of performing a scopeProxy leak workaround.
393
454
  - Under the default `{errorTaming: 'safe'}` setting, the SES shim already redacts stack traces from error instances when it can (currently: v8, spiderMonkey, XS). The setting `{errorTaming: 'unsafe'}` suppresses that redaction, instead blabbing these stack traces on error instances via the expected `errorInstance.stack`.
394
455
 
395
- The purpose of the `details` template literal tag (often spelled `X` or `d`) together with the `quote` function (often spelled `q`) is to redact data from the error messages carried by error instances. With this release, the same `{errorTaming: 'unsafe'}` would suppress that redaction as well, so that all substitution values would act like they've been quoted. IOW, with this setting
456
+ The purpose of the `details` template literal tag (often spelled `X`) together with the `quote` function (often spelled `q`) is to redact data from the error messages carried by error instances. With this release, the same `{errorTaming: 'unsafe'}` would suppress that redaction as well, so that all substitution values would act like they've been quoted. IOW, with this setting
396
457
 
397
458
  ```js
398
459
  assert(false, X`literal part ${secretData} with ${q(publicData)}.`);
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # SES
2
2
 
3
- SES is *hardened JavaScript*. SES stands for *fearless cooperation*.
4
- This package is a SES [shim][define shim] for JavaScript features
5
- [proposed][SES proposal] to ECMA TC39.
3
+ SES is a [shim][define shim] for [Hardened JavaScript][] as [proposed][SES
4
+ proposal] to ECMA TC39.
5
+ SES stands for *fearless cooperation*.
6
6
  Hardened JavaScript is highly compatible with ordinary JavaScript.
7
- Most existing JavaScript libraries can run on hardened JavaScript.
7
+ Most existing JavaScript libraries can run on Hardened JavaScript.
8
8
 
9
9
  * **Compartments** Compartments are separate execution contexts: each one has
10
10
  its own global object and global lexical scope.
@@ -24,6 +24,14 @@ compartments that have no excess authority in their global scope.
24
24
  SES runs atop an ES6-compliant platform, enabling safe interaction of
25
25
  mutually-suspicious code, using object-capability -style programming.
26
26
 
27
+ Agoric and MetaMask rely on Hardened JavaScript and this SES shim as part of
28
+ systems that sandbox third-party plugins or smart contracts and mitigate supply
29
+ chain attacks for production web applications, web extensions, and build
30
+ systems.
31
+
32
+ [![Agoric Logo](docs/agoric-x100.png)](https://agoric.com/)
33
+ [![MetaMask Logo](docs/metamask-x100.png)](https://metamask.io/)
34
+
27
35
  See https://github.com/Agoric/Jessie to see how SES fits into the various
28
36
  flavors of confined JavaScript execution. And visit
29
37
  https://ses-demo.agoric.app/demos/ for a demo.
@@ -161,7 +169,10 @@ function on `globalThis`.
161
169
  import 'ses';
162
170
 
163
171
  const c = new Compartment({
164
- print: harden(console.log),
172
+ globals: {
173
+ print: harden(console.log),
174
+ },
175
+ __options__: true, // temporary migration affordance
165
176
  });
166
177
 
167
178
  c.evaluate(`
@@ -205,7 +216,10 @@ through:
205
216
  * by assigning them to the compartment's `globalThis` after construction.
206
217
 
207
218
  ```js
208
- const powerfulCompartment = new Compartment({ Math });
219
+ const powerfulCompartment = new Compartment({
220
+ globals: { Math },
221
+ __options__: true, // temporary migration affordance
222
+ });
209
223
  powerfulCompartment.globalThis.Date = Date;
210
224
  ```
211
225
 
@@ -254,22 +268,31 @@ This can and should be frozen before running any dynamic code in that
254
268
  compartment, yet is not strictly necessary if the compartment only
255
269
  runs code from a single party.
256
270
 
257
-
258
271
  ### Modules
259
272
 
260
273
  Any code executed within a compartment shares a set of module instances.
261
274
  For modules to work within a compartment, the creator must provide
262
- a `resolveHook` and an `importHook`.
275
+ module descriptors.
276
+ A compartment can be configured with module descriptors, from highest to lowest
277
+ precedence:
278
+
279
+ - the `modules` map provided to the `Compartment` constructor,
280
+ - returned by a `moduleMapHook(specifier)` passed as an option to the
281
+ `Compartment` constructor.
282
+ - returned by either the `importHook(specifier)` or `importNowHook(specifier)`
283
+ option passed to the `Compartment` constructor. Calling
284
+ `compartment.import(specifier)` falls through to the `importHook` which may
285
+ return a promises, whereas `compartment.importNow(specifier)` falls through
286
+ to the synchronous `importNowHook`.
287
+
263
288
  The `resolveHook` determines how the compartment will infer the full module
264
289
  specifier for another module from a referrer module and the import specifier.
265
- The `importHook` accepts a full specifier and asynchronously returns a
266
- `StaticModuleRecord` for that module.
267
290
 
268
291
  ```js
269
292
  import 'ses';
270
- import { StaticModuleRecord } from '@endo/static-module-record';
293
+ import { ModuleSource } from '@endo/module-source';
271
294
 
272
- const c1 = new Compartment({}, {}, {
295
+ const c1 = new Compartment({
273
296
  name: "first compartment",
274
297
  resolveHook: (moduleSpecifier, moduleReferrer) => {
275
298
  return resolve(moduleSpecifier, moduleReferrer);
@@ -277,50 +300,98 @@ const c1 = new Compartment({}, {}, {
277
300
  importHook: async moduleSpecifier => {
278
301
  const moduleLocation = locate(moduleSpecifier);
279
302
  const moduleText = await retrieve(moduleLocation);
280
- return new StaticModuleRecord(moduleText, moduleLocation);
303
+ return {
304
+ source: new ModuleSource(moduleText, moduleLocation);
305
+ };
281
306
  },
307
+ __options__: true, // temporary migration affordance
282
308
  });
283
309
  ```
284
310
 
285
- > The SES language specifies a global `StaticModuleRecord`, but this is not
286
- > provided by the shim because it entrains a full JavaScript parser that is an
287
- > unnecessary performance penalty for the SES runtime.
288
- > Instead, the SES shim accepts a compiled static module record duck-type that
311
+ > The Hardened JavaScript language specifies a global `ModuleSource`, but this
312
+ > is not provided by the shim because it entrains a full JavaScript parser that
313
+ > is an unnecessary performance penalty for the SES runtime.
314
+ > Instead, the SES shim accepts a pre-compiled module source duck-type that
289
315
  > is tightly coupled to the shim implementation.
290
- > Third party modules can provide suitable implementations and even move the
291
- > compile step to build time instead of runtime.
292
316
 
293
317
  A compartment can also link a module in another compartment.
294
- Each compartment has a `module` function that accepts a module specifier
295
- and returns the module exports namespace for that module.
296
- The module exports namespace is not useful for inspecting the exports of the
297
- module until that module has been imported, but it can be passed into the
298
- module map of another Compartment, creating a link.
299
318
 
300
319
  ```js
301
- const c2 = new Compartment({}, {
302
- 'c1': c1.module('./main.js'),
303
- }, {
320
+ const c2 = new Compartment({
304
321
  name: "second compartment",
322
+ modules: {
323
+ 'c1': {
324
+ source: './main.js',
325
+ compartment: c1,
326
+ },
327
+ },
305
328
  resolveHook,
306
329
  importHook,
330
+ __options__: true, // temporary migration affordance
307
331
  });
308
332
  ```
309
333
 
310
- ### importHook aliases
334
+ #### Module Descriptors
335
+
336
+ Comparments can load and initialize module namespaces from module descriptors.
337
+ Like property descriptors, module descriptors are ordinary objects with various
338
+ forms.
339
+
340
+ ##### Descriptors with `source` property
341
+
342
+ - If fhe value of the `source` property is a string, the parent compartment
343
+ loads the module but the compartment itself initializes the module.
344
+
345
+ - Otherwise, if the value of the `source` property is the module source, the
346
+ module is initialized from the module source.
347
+
348
+ - Otherwise, the value of the `source` property must be an object. The module
349
+ is loaded and initialized from the object according to the [virtual module
350
+ source](#VirtualModuleSource) pattern.
351
+
352
+ If the `importMeta` property is present, its value must be an object. The
353
+ default `importMeta` object is an empty object.
354
+
355
+ Compartments copy the `importMeta` object properties into the module
356
+ `import.meta` object like `Object.assign`.
357
+
358
+ If the `specifier` property is present, its value is coerced into a string and
359
+ becomes the referrer specifier of the module, on which all import specifiers
360
+ are resolved using the `resolveHook`.
361
+
362
+ ##### Descriptors with `namespace` property
363
+
364
+ - If fhe value of the `namespace` property is a string, the descriptor shares a
365
+ module to be loaded and initialized by the compartment referred by the
366
+ `compartment` property.
367
+
368
+ - If the `compartment` property is present, its value must be a
369
+ compartment.
370
+ - If absent, the `compartment` property defaults to the compartment being
371
+ constructed in the `modules` option, or being hooked in the `loadHook`
372
+ and `loadNowHook` options.
373
+
374
+ - Otherwise, if the value of the `namespace` property is a module namepace, the
375
+ descriptor shares a module that is already available.
376
+
377
+ - Otherwise, the value of `namespace` property must be an object. The module is
378
+ loaded and initialized from the object according to the [virtual module
379
+ namespace](#VirtualModuleNamespace) pattern.
380
+
381
+ #### Redirects
311
382
 
312
383
  If a compartment imports a module specified as `"./utility"` but actually
313
384
  implemented by an alias like `"./utility/index.js"`, the `importHook` may
314
385
  follow redirects, symbolic links, or search for candidates using its own logic
315
386
  and return a module that has a different "response specifier" than the original
316
387
  "request specifier".
317
- The `importHook` may return an "alias" object with `record`, `compartment`,
318
- and `module` properties.
388
+ The `importHook` may return an "alias" object with `source`, `compartment`,
389
+ and `specifier` properties.
319
390
 
320
- - `record` must be a static module record, either a third-party module record
321
- or a compiled static module record.
391
+ - `source` must be a module source, either a virtual module source
392
+ or a compiled module source.
322
393
  - `compartment` is optional, to be specified if the alias transits to a
323
- different compartment, and
394
+ the specified different compartment, and
324
395
  - `specifier` is the full module specifier of the module in its compartment.
325
396
  This defaults to the request specifier, which is only useful if the
326
397
  compartment is different.
@@ -332,21 +403,26 @@ alias.
332
403
  const importHook = async specifier => {
333
404
  const candidates = [specifier, `${specifier}.js`, `${specifier}/index.js`];
334
405
  for (const candidate of candidates) {
335
- const record = await wrappedImportHook(candidate).catch(_ => undefined);
336
- if (record !== undefined) {
337
- return { record, specifier };
406
+ const source = await maybeImportSource(candidate);
407
+ if (source !== undefined) {
408
+ return {
409
+ source,
410
+ specifier: candidate,
411
+ compartment,
412
+ };
338
413
  }
339
414
  }
340
415
  throw new Error(`Cannot find module ${specifier}`);
341
416
  };
342
417
 
343
- const compartment = new Compartment({}, {}, {
418
+ const compartment = new Compartment({
344
419
  resolveHook,
345
420
  importHook,
421
+ __options__: true, // temporary migration affordance
346
422
  });
347
423
  ```
348
424
 
349
- ### moduleMapHook
425
+ #### moduleMapHook
350
426
 
351
427
  The module map above allows modules to be introduced to a compartment up-front.
352
428
  Some modules cannot be known that early.
@@ -365,65 +441,87 @@ If the `moduleMapHook` returns `undefined`, the compartment proceeds to the
365
441
  ```js
366
442
  const moduleMapHook = moduleSpecifier => {
367
443
  if (moduleSpecifier === 'even') {
368
- return even.module('./index.js');
444
+ return {
445
+ source: './index.js',
446
+ compartment: even,
447
+ };
369
448
  } else if (moduleSpecifier === 'odd') {
370
- return odd.module('./index.js');
449
+ return {
450
+ source: './index.js',
451
+ compartment: odd,
452
+ };
371
453
  }
372
454
  };
373
455
 
374
- const even = new Compartment({}, {}, {
456
+ const even = new Compartment({
375
457
  resolveHook: nodeResolveHook,
376
458
  importHook: makeImportHook('https://example.com/even'),
377
459
  moduleMapHook,
460
+ __options__: true, // temporary migration affordance
378
461
  });
379
462
 
380
- const odd = new Compartment({}, {}, {
463
+ const odd = new Compartment({
381
464
  resolveHook: nodeResolveHook,
382
465
  importHook: makeImportHook('https://example.com/odd'),
383
466
  moduleMapHook,
467
+ __options__: true, // temporary migration affordance
384
468
  });
385
469
  ```
386
470
 
387
- ### importNowHook
471
+ #### importNowHook
388
472
 
389
- Additionally, an `importNowHook` may be provided that the compartment will use as means to synchronously load modules not seen before in situations where calling out to asynchronous `importHook` is not possible.
390
- Specifically, when `compartmentInstance.importNow('specifier')` is called, the compartment will first look up module records it's already aware of and call `moduleMapHook` and if none of that is successful in finding a module record matching the specifier, it will call `importNowHook` expecting to synchronously receive the same record type as from `importHook` or throw if it cannot.
473
+ Additionally, an `importNowHook` may be provided that the compartment will use
474
+ as means to synchronously load modules not seen before in situations where
475
+ calling out to asynchronous `importHook` is not possible.
476
+ Specifically, when `compartmentInstance.importNow('specifier')` is called, the
477
+ compartment will first look up module records it's already aware of and call
478
+ `moduleMapHook` and if none of that is successful in finding a module record
479
+ matching the specifier, it will call `importNowHook` expecting to synchronously
480
+ receive the same record type as from `importHook` or throw if it cannot.
391
481
 
392
482
  ```js
393
483
  import 'ses';
394
- import { StaticModuleRecord } from '@endo/static-module-record';
484
+ import { ModuleSource } from '@endo/module-source';
395
485
 
396
- const c1 = new Compartment({}, {
397
- 'c2': c2.module('./main.js'),
398
- }, {
486
+ const compartment = new Compartment({
399
487
  name: "first compartment",
488
+ modules: {
489
+ c: {
490
+ source: new ModuleSource(''),
491
+ },
492
+ },
400
493
  resolveHook: (moduleSpecifier, moduleReferrer) => {
401
494
  return resolve(moduleSpecifier, moduleReferrer);
402
495
  },
403
496
  importHook: async moduleSpecifier => {
404
497
  const moduleLocation = locate(moduleSpecifier);
405
498
  const moduleText = await retrieve(moduleLocation);
406
- return new StaticModuleRecord(moduleText, moduleLocation);
499
+ return {
500
+ source: new ModuleSource(moduleText, moduleLocation),
501
+ };
407
502
  },
408
503
  importNowHook: moduleSpecifier => {
409
504
  const moduleLocation = locate(moduleSpecifier);
410
- // Platform specific synchronous read API can be used
505
+ // Platform-specific synchronous read API can be used
411
506
  const moduleText = fs.readFileSync(moduleLocation);
412
- return new StaticModuleRecord(moduleText, moduleLocation);
507
+ return {
508
+ source: new ModuleSource(moduleText, moduleLocation),
509
+ };
413
510
  },
511
+ __options__: true, // temporary migration affordance
414
512
  });
415
513
  //... | importHook | importNowHook
416
- await c1.import('a'); //| called | not called
417
- c1.importNow('b'); //| not called | called
418
- c1.importNow('a'); //| not called | not called
419
- c1.importNow('c2'); //| not called | not called
514
+ await compartment.import('a'); //| called | not called
515
+ compartment.importNow('b'); //| not called | called
516
+ compartment.importNow('a'); //| not called | not called
517
+ compartment.importNow('c'); //| not called | not called
420
518
  ```
421
519
 
422
- ### Third-party modules
520
+ ### <a name="VirtualModuleSource"></a> Virtual Module Source
423
521
 
424
522
  To incorporate modules not implemented as JavaScript modules, third-parties may
425
- implement a `StaticModuleRecord` interface.
426
- The record must have an `imports` array and an `execute` method.
523
+ implement a `VirtualModuleSource` interface.
524
+ The object must have an `imports` array and an `execute` method.
427
525
  The compartment will call `execute` with:
428
526
 
429
527
  1. the proxied `exports` namespace object,
@@ -434,23 +532,27 @@ The compartment will call `execute` with:
434
532
  specified `imports`.
435
533
 
436
534
  :warning: A future breaking version may allow the `importNow` and the `execute`
437
- method of third-party static module records to return promises, to support
535
+ method of virtual module sources to return promises, to support
438
536
  top-level await.
439
537
 
538
+ :warning: The virtual module source interface does not yet agree with the
539
+ [XS](https://www.moddable.com/hardening-xs) implementation of [Hardened
540
+ JavaScript](https://hardenedjs.org/).
541
+
440
542
  ### Compiled modules
441
543
 
442
- Instead of the `StaticModuleRecord` constructor specified for the SES language,
443
- the SES shim uses compiled static module records as a stand-in.
444
- These can be created with a `StaticModuleRecord` constructor from a package
445
- like `@endo/static-module-record`.
446
- We omitted `StaticModuleRecord` from the SES shim because it entrains a heavy
544
+ Instead of the `ModuleSource` constructor specified for the SES language,
545
+ the SES shim uses compiled module source records as a stand-in.
546
+ These can be created with a `ModuleSource` constructor from a package
547
+ like `@endo/module-source`.
548
+ We omitted `ModuleSource` from the SES shim because it entrains a heavy
447
549
  dependency on a JavaScript parser.
448
- The shim depends upon a `StaticModuleRecord` constructor to analyze and
550
+ The shim depends upon a `ModuleSource` constructor to analyze and
449
551
  transform the source of a JavaScript module (known as an ESM or a `.mjs` file)
450
552
  into a JavaScript program suitable for evaluation with `compartment.evaluate`
451
553
  using a particular calling convention to initialize a module instance.
452
554
 
453
- A compiled static module record has the following shape:
555
+ A compiled module source record has the following shape:
454
556
 
455
557
  - `imports` is a record that maps partial module specifiers to a list of
456
558
  names imported from the corresponding module.
@@ -482,7 +584,7 @@ A compiled static module record has the following shape:
482
584
  instead of the evaluation of the `__syncModuleProgram__` string. It will be
483
585
  called with the initialization record described above. It is intended to be
484
586
  used in environments where eval is not available. Sandboxing of the functor is
485
- the responsibility of the author of the StaticModuleRecord.
587
+ the responsibility of the author of the ModuleSource.
486
588
  - `__liveExportsMap__` is a record that maps import names or names in the lexical
487
589
  scope of the module to export names, for variables that may change after
488
590
  initialization. Any reexported name is assumed to possibly change.
@@ -507,7 +609,11 @@ not a module.
507
609
 
508
610
  ```js
509
611
  const transforms = [addCodeCoverageInstrumentation];
510
- const c = new Compartment({ console, coverage }, null, { transforms });
612
+ const c = new Compartment({
613
+ globals: { console, coverage },
614
+ transforms,
615
+ __options__: true, // temporary migration affordance
616
+ });
511
617
  c.evaluate('console.log("Hello");');
512
618
  ```
513
619
 
@@ -524,7 +630,7 @@ c.evaluate('console.log("Farewell, World!")', { transforms });
524
630
  These transforms do not apply to modules.
525
631
  To transform the source of a JavaScript module, the `importHook` must
526
632
  intercept the source and transform it before passing it to the
527
- `StaticModuleRecord` constructor.
633
+ `ModuleSource` constructor.
528
634
  These are distinct because programs and modules have distinct grammar
529
635
  productions.
530
636
 
@@ -545,8 +651,10 @@ instead of `transforms`.
545
651
 
546
652
  ```js
547
653
  const __shimTransforms__ = [addCoverage];
548
- const c = new Compartment({ console, coverage }, null, {
654
+ const c = new Compartment({
655
+ globals: { console, coverage },
549
656
  __shimTransforms__,
657
+ __options__: true, // temporary migration affordance
550
658
  });
551
659
  c.evaluate('console.log("Hello");');
552
660
  ```
@@ -653,11 +761,17 @@ abilities.
653
761
  lockdown();
654
762
 
655
763
  const promise = new Promise(resolve => {
656
- const compartmentA = new Compartment(harden({ resolve }));
764
+ const compartmentA = new Compartment({
765
+ globals: harden({ resolve }),
766
+ __options__: true, // temporary migration affordance
767
+ });
657
768
  compartmentA.evaluate(programA);
658
769
  });
659
770
 
660
- const compartmentB = new Compartment(harden({ promise }));
771
+ const compartmentB = new Compartment({
772
+ globals: harden({ promise }),
773
+ __options__: true, // temporary migration affordance
774
+ });
661
775
  compartmentB.evaluate(programB);
662
776
  ```
663
777
 
@@ -817,6 +931,7 @@ We find that library authors are generally amenable to making these small change
817
931
  compatibility with any environment that protects itself from prototype pollution attacks by freezing
818
932
  intrinsics, including `ses`.
819
933
 
934
+ [Hardened JavaScript]: https://hardenedjs.org/
820
935
  [define shim]: https://en.wikipedia.org/wiki/Shim_(computing)
821
936
  [Endo Matrix]: https://matrix.to/#/#endojs:matrix.org
822
937
  [incompatibility tracking]: https://github.com/endojs/endo/issues/576