Skip to content

Commit

Permalink
Move toRegExp before the comment
Browse files Browse the repository at this point in the history
Add @added unreleased information
  • Loading branch information
AdamWr committed May 31, 2023
1 parent 27e2c8b commit 318084d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scriptlets/evaldata-prune.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
matchStackTrace,
getWildcardPropertyInChain,
logMessage,
// following helpers are needed for helpers above
toRegExp,
// following helpers are needed for helpers above
getNativeRegexpTest,
shouldAbortInlineOrInjectedScript,
} from '../helpers/index';
Expand Down Expand Up @@ -86,6 +86,7 @@ import {
* example.org#%#//scriptlet('evaldata-prune', '', '"id":"117458"')
* ```
*
* @added unreleased.
*/
export function evalDataPrune(source, propsToRemove, requiredInitialProps, stack) {
if (!!stack && !matchStackTrace(stack, new Error().stack)) {
Expand Down Expand Up @@ -210,8 +211,8 @@ evalDataPrune.injections = [
matchStackTrace,
getWildcardPropertyInChain,
logMessage,
// following helpers are needed for helpers above
toRegExp,
// following helpers are needed for helpers above
getNativeRegexpTest,
shouldAbortInlineOrInjectedScript,
];

0 comments on commit 318084d

Please sign in to comment.