checkErrors

fun WebGLRenderingContext.checkErrors(msg: String = "")(source)