KhronosGroup/WebGL — pull request #96 by bjacob (2012-11-29 22:22:03+00:00)
Title: Firefox fails as this local test(x) function is only defined further dow...

...n:

It's used on line 62 but is only defined on line 75.
Moving it above makes the test pass in Firefox.