(template, ...args)
| 1594 | * @type {DetailsTag} |
| 1595 | */ |
| 1596 | const redactedDetails= (template, ...args)=> { |
| 1597 | // Keep in mind that the vast majority of calls to `details` creates |
| 1598 | // a details token that is never used, so this path must remain as fast as |
| 1599 | // possible. Hence we store what we've got with little processing, postponing |
| 1600 | // all the work to happen only if needed, for example, if an assertion fails. |
| 1601 | const detailsToken= freeze({ __proto__: DetailsTokenProto}); |
| 1602 | weakmapSet(hiddenDetailsMap, detailsToken, { template, args}); |
| 1603 | return detailsToken; |
| 1604 | }; |
| 1605 | freeze(redactedDetails); |
| 1606 | |
| 1607 | /** |
no outgoing calls
no test coverage detected