trapdoor use this.std

This commit is contained in:
Emile Clark-Boman 2026-01-25 11:44:21 +10:00
parent 25d00f7a2f
commit db24747a47

View file

@ -7,10 +7,10 @@
; ;
inherit inherit
(this) (this.std)
enfHasAttr enfHasAttr
enfHasAttr' enfHasAttr'
enfIsType enfIsAttrs
; ;
in rec { in rec {
masterkey = "_''traps''_"; masterkey = "_''traps''_";
@ -53,6 +53,6 @@ in rec {
if isFunction T if isFunction T
then openTrapdoorFn key T then openTrapdoorFn key T
else else
assert enfIsType "set" T "openTrapdoor"; assert enfIsAttrs T "openTrapdoor";
openTrapdoorSet key T; openTrapdoorSet key T;
} }