mrdoob/three.js — pull request #4829 by Canta (2014-05-18 16:57:47+00:00)
Title: Fix for "self is not defined" in node.js

Node.js (v0.10.26) seems to have no "self" global var. Therefore, calling a check on "self.console" throws an exception. This is solved by simply defining the "self" var. I don't understand in wich contexts that var is supposed to be pre-defined, but i guess my patch would not break that use case anyway.