It seems that currently stack parameter doesn't work correctly, it's checked at the beginning of the scriptlet, not during pruning, so it's from scriptlet itself (if I'm not wrong):
|
export function jsonPrune(source, propsToRemove, requiredInitialProps, stack) { |
|
if (!!stack && !matchStackTrace(stack, new Error().stack)) { |
|
return; |
|
} |
It seems that currently
stackparameter doesn't work correctly, it's checked at the beginning of the scriptlet, not during pruning, so it's from scriptlet itself (if I'm not wrong):Scriptlets/src/scriptlets/json-prune.js
Lines 101 to 104 in deff2c7