The WebGLRenderingContext.getBufferParameter() method of the WebGL API returns information about the buffer.
WebGLRenderingContext.getBufferParameter()
external JSAny? getBufferParameter( GLenum target, GLenum pname, );