Last active
October 11, 2015 19:18
-
-
Save rwaldron/3906504 to your computer and use it in GitHub Desktop.
Are you really in node? Look for `process` and check its `[[Class]]`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/joyent/node/blob/master/src/node.cc | |
// Look for: process_template->SetClassName(String::NewSymbol("process")); | |
// | |
console.log( | |
typeof process !== "undefined" && {}.toString.call(process) === "[object process]" | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment