06:24
<sideshowbarker>
https://github.com/mdn/content/issues/7106
06:25
<sideshowbarker>
where does the errors property of AggregateError instances come from?
06:30
<sideshowbarker>
see also https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any#rejection
06:31
<sideshowbarker>
If all of the passed-in promises reject, Promise.any asynchronously rejects with an {{JSxRef("AggregateError")}} object, which extends {{JSxRef("Error")}}, and contains an errors property with an array of rejection values.
06:32
<sideshowbarker>
errors is not part of the prototype of AggregateError, so I don’t understand where it’s coming from
06:35
<sideshowbarker>
looking at the spec at https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-aggregate-error-objects, I also don’t see any mention of errors
07:34
<Ashley Claymore>
errors is not part of the prototype of AggregateError, so I don’t understand where it’s coming from

https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-aggregate-error Step 5

Perform ! DefinePropertyOrThrow(O, "errors", PropertyDescriptor { [[Configurable]]: true, [[Enumerable]]: false, [[Writable]]: true, [[Value]]: ! CreateArrayFromList(errorsList) }).

08:35
<sideshowbarker>

https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-aggregate-error Step 5

Perform ! DefinePropertyOrThrow(O, "errors", PropertyDescriptor { [[Configurable]]: true, [[Enumerable]]: false, [[Writable]]: true, [[Value]]: ! CreateArrayFromList(errorsList) }).

d’oh — thanks much, I don’t know how I overlooked that before…
19:11
<shu>
general question: what's the best supported emacs TS mode?