KhronosGroup/WebGL — pull request #508 by toji (2014-03-25 18:10:27+00:00)
Title: Added test to check for the proper prototype chain

A strict interpretation of the spec would indicate that the WebGLRenderingContext should only have Object in it's prototype chain. Specifically, it should NOT show WebGLRenderingContextBase in the prototype chain.

This test is currently passing on Firefox and IE11. It passes on stable Chrome but not some of the newer builds because we are accidentally exposing WebGLRenderingContextBase in the prototype chain. The test also fails in Safari, where the next item up in WebGLRenderingContext's prototype chain is a "CanvasRenderingContext"