I’m trying to figure out how to solve this dilemma: Browsers attach global variables to window.
Node.js attaches globals to global. I’m trying to check for the existence of a global called process. In JS, you’d generally do that by checking typeof process == ‘undefined’. Falcon does not allow you to do that and complains that process is an undefined property. In the browser you can use window[“process”] == undefined and in node you can (theoretically) use global[“process”] == undefined. I can’t think of a generic way to do this though. Thoughts? Harbs