Note: This feature is available in Web Workers.
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().
new WebGLContextEvent(type, options)typeA string indicating the type of the event. It is case-sensitive and should be one of webglcontextcreationerror, webglcontextlost, or webglcontextrestored.
options OptionalAn object that, in addition to the properties defined in Event(), has the following properties:
statusMessage OptionalA string with additional status information. It defaults to the empty string ("").
A new WebGLContextEvent object.