Closed dakom closed 5 years ago
validate
is currently a “private” method; I haven't given any thought to its ergonomics in contexts other than the sanctuary-def source code. I'm in favour of adding $.validate
(as proposed in #219), which will obviate the need for usability improvements to this private method. :)
The following causes an exception to be thrown:
However, if we bind
$.String.validate
to give it the rightthis
, it works: