Extend security masked data protocol
This commit is contained in:
parent
f5675b640d
commit
df9062475c
|
@ -11,6 +11,18 @@
|
|||
(deftype MaskedData [data]
|
||||
Object
|
||||
(toString [_] "******")
|
||||
|
||||
ICounted
|
||||
(-count [^js this]
|
||||
(count (.-data this)))
|
||||
|
||||
IEquiv
|
||||
(-equiv [this other]
|
||||
(if (instance? MaskedData other)
|
||||
(= (unmask this)
|
||||
(unmask other))
|
||||
false))
|
||||
|
||||
Unmaskable
|
||||
(unmask [^js this]
|
||||
(.-data this)))
|
||||
|
|
Loading…
Reference in New Issue