Endo API documentation
    Preparing search index...

    Function hideAndHardenFunction

    • 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).

      Parameters

      • func: Function

      Returns Function