A saved script execution state, present when an object carries the
RF_HasStack flag.
This is not a property, but it is stored at the head of the property block
and listed in the properties array alongside real ones. The name field
is what makes that work: getProp() lowercases prop.name on every element
without guarding, so a state frame with no name would make any getProp()
call on that object throw. It is common enough to matter - 684 of the 1,344
exports in DM-Peak.unr carry RF_HasStack.
Typed as the literal "StateFrame" rather than string, which makes the
field a usable discriminant in PropertyListEntry (src/package/objects.ts)
a state frame is the one entry there with no type.
offset is only stored when node is non-zero: with no node there is no
bytecode to be positioned within.
A saved script execution state, present when an object carries the
RF_HasStackflag.This is not a property, but it is stored at the head of the property block and listed in the
propertiesarray alongside real ones. Thenamefield is what makes that work:getProp()lowercasesprop.nameon every element without guarding, so a state frame with nonamewould make anygetProp()call on that object throw. It is common enough to matter - 684 of the 1,344 exports inDM-Peak.unrcarryRF_HasStack.Typed as the literal
"StateFrame"rather thanstring, which makes the field a usable discriminant inPropertyListEntry(src/package/objects.ts)type.offsetis only stored whennodeis non-zero: with no node there is no bytecode to be positioned within.