Skip to content

Commit

Permalink
fixup! note why raw guard is exempt
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Feb 6, 2024
1 parent cef9b66 commit 0d79fa0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/patterns/src/patterns/patternMatchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1815,6 +1815,13 @@ export const isRawGuard = specimen => matches(specimen, RawGuardShape);
export const assertRawGuard = specimen =>
mustMatch(specimen, RawGuardShape, 'rawGuard');

// Unlike LegacyAwaitArgGuardShape, LegacyMethodGuardShape,
// and LegacyInterfaceGuardShape, there is no need for a
// LegacyRawGuardShape, because raw guards were introduced at
// https://github.com/endojs/endo/pull/1831 , which was merged well after
// https://github.com/endojs/endo/pull/1712 > Thus, there was never a
// `klass:` form of the raw guard.

/**
* @returns {import('./types.js').RawGuard}
*/
Expand Down

0 comments on commit 0d79fa0

Please sign in to comment.