The WebGLContextEvent()
constructor creates a new WebGLContextEvent
object.
Note: You typically don't need to call this constructor; the browser creates these objects automatically when WebGL context events get fired. To manually trigger a webglcontextlost
event, use WEBGL_lose_context.loseContext()
.