stackgl/webglew — pull request #1 by mattdesl (2014-11-30 20:15:03+00:00)
Title: Use a better weak map implementation

The current weakmap implementation is really horrifying (using eval, trying to parse function names, etc). It seems to be no longer maintained.

It also breaks in CocoonJS, and in Safari 7.0.3 after UglifyJS (mangle + compress) because of the strange crap it's using.

This is a drop in change to use [weak-map](https://www.npmjs.org/package/weak-map), which fixes these problems and seems to work fine for all the demos I've tested so far. Hopefully it can come in a patch to ease the upgrade across all the dozens of modules that rely on webglew in one way or another.