stackFiltering: 'omit-frames' and stackFiltering: 'concise' omit frames
not only of "obvious" infrastructure functions, but also of functions
whose name property begins with '__HIDE_'. (Note: currently
these options only work on v8.)
Given that func is not yet frozen, then hideAndHardenFunction(func)
will prifix func.name with an additional '__HIDE_', so that under
those stack filtering options, frames for calls to such functions are
not reported.
Then the function is hardened and returned. Thus, you can say
hideAndHardenFunction(func) where you would normally first say
harden(func).
stackFiltering: 'omit-frames'
andstackFiltering: 'concise'
omit frames not only of "obvious" infrastructure functions, but also of functions whosename
property begins with'__HIDE_'
. (Note: currently these options only work on v8.)Given that
func
is not yet frozen, thenhideAndHardenFunction(func)
will prifixfunc.name
with an additional'__HIDE_'
, so that under those stack filtering options, frames for calls to such functions are not reported.Then the function is hardened and returned. Thus, you can say
hideAndHardenFunction(func)
where you would normally first sayharden(func)
.