Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Oct 2, 2023
1 parent 4f2c039 commit c2e8442
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions packages/react/src/ReactTaint.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function taintUniqueValue(
(typeof lifetime !== 'object' && typeof lifetime !== 'function')
) {
throw new Error(
'To taint a value, a life time must be defined by passing an object that holds ' +
'To taint a value, a lifetime must be defined by passing an object that holds ' +
'the value.',
);
}
Expand Down Expand Up @@ -95,8 +95,7 @@ export function taintUniqueValue(
throw new Error(
'Cannot taint a ' +
kind +
' because the value is too general and cannot be ' +
'a secret by',
' because the value is too general and not unique enough to block globally.',
);
}
const existingEntry = TaintRegistryValues.get(entryValue);
Expand Down
4 changes: 2 additions & 2 deletions scripts/error-codes/codes.json
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,9 @@
"490": "Expected to see a Suspense boundary in this slot. The tree doesn't match so React will fallback to client rendering.",
"491": "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.",
"492": "The \"react\" package in this environment is not configured correctly. The \"react-server\" condition must be enabled in any environment that runs React Server Components.",
"493": "To taint a value, a life time must be defined by passing an object that holds the value.",
"493": "To taint a value, a lifetime must be defined by passing an object that holds the value.",
"494": "taintUniqueValue cannot taint objects or functions. Try taintObjectReference instead.",
"495": "Cannot taint a %s because the value is too general and cannot be a secret by",
"495": "Cannot taint a %s because the value is too general and not unique enough to block globally.",
"496": "Only objects or functions can be passed to taintObjectReference. Try taintUniqueValue instead.",
"497": "Only objects or functions can be passed to taintObjectReference."
}

0 comments on commit c2e8442

Please sign in to comment.