Yuari
Documentation
Docs/Closures/isstackhidden

isstackhidden

Returns whether a function or stack level is hidden from debug inspection.

Syntax

isstackhidden(fnOrLevel: function | number) -> boolean

Parameters

ParameterTypeDescription
fnOrLevelfunction | numberThe fn or level value used by the call.

Returns

TypeDescription
booleanWhether a function or stack level is hidden from debug inspection

Description

isstackhidden is part of the Closures library. Closure helpers operate on live Luau function objects. Hooks redirect future calls through the replacement closure and return the previous implementation.

The call is a predicate: it inspects the current state and returns a boolean without modifying anything.

The aliases is_stack_hidden, ishiddenstack resolve to the same implementation.

Example

print(isstackhidden(function() end)) -- false

Notes

  • Aliases: is_stack_hidden, ishiddenstack.
  • Closure operations act on live Luau function objects; installed hooks remain active until restored.