getError

open external fun getError(): GLenum(source)

MDN Reference