Jump to content

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) {
9,483

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.