canStoreAsRawLuaSlot property

bool get canStoreAsRawLuaSlot

Whether storing only this wrapper's raw slot preserves all observable Lua semantics. Values with side metadata or closure state must retain their wrapper identity (for example, primitive metatables and __name).

Implementation

bool get canStoreAsRawLuaSlot =>
    _metadataPayload == null && _closurePayload == null;