Category talk:Wren-check: Difference between revisions
→Source code: Added an overload for Check.type method to cater for custom error messages.
(→Source code: Added Check.ok method.) |
(→Source code: Added an overload for Check.type method to cater for custom error messages.) |
||
Line 280:
if (value.type.toString != type.toString) abort_(name, value, "an object of type %(type)")
}
static type(name, value, type, message) {
if (value.type.toString != type.toString) abort_(name, value, message)
}
static typeOpt(name, value, options) {
|