{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/4944","repository_url":"https://api.github.com/repos/atom/electron","labels_url":"https://api.github.com/repos/atom/electron/issues/4944/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/4944/comments","events_url":"https://api.github.com/repos/atom/electron/issues/4944/events","html_url":"https://github.com/atom/electron/issues/4944","id":144416911,"number":4944,"title":"ELECTRON_RUN_AS_NODE behavior doesn't match node","user":{"login":"zhm","id":89634,"avatar_url":"https://avatars.githubusercontent.com/u/89634?v=3","gravatar_id":"","url":"https://api.github.com/users/zhm","html_url":"https://github.com/zhm","followers_url":"https://api.github.com/users/zhm/followers","following_url":"https://api.github.com/users/zhm/following{/other_user}","gists_url":"https://api.github.com/users/zhm/gists{/gist_id}","starred_url":"https://api.github.com/users/zhm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhm/subscriptions","organizations_url":"https://api.github.com/users/zhm/orgs","repos_url":"https://api.github.com/users/zhm/repos","events_url":"https://api.github.com/users/zhm/events{/privacy}","received_events_url":"https://api.github.com/users/zhm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-29T23:21:26Z","updated_at":"2016-03-31T13:34:35Z","closed_at":"2016-03-31T13:34:35Z","body":"* Electron version: 0.37.2 + 0.36.12\r\n* Operating system: OS X 10.11.4 (15E65)\r\n\r\nThe process doesn't seem to exit like `node` does. I've reduced it to something `babel-register` is doing. I'm not sure if this is a bug within babel or electron, so feel free to close this if it's a bug with babel. It's the same behavior on both 0.37.2 and 0.36.12.\r\n\r\n```sh\r\n# works properly, does nothing and exits\r\nnode -e \"require('babel-register')\"\r\n\r\n# hangs forever until you ctrl+c\r\nELECTRON_RUN_AS_NODE=true node_modules/.bin/electron -e \"require('babel-register')\"\r\n```\r\n\r\nA complete test:\r\n\r\n```sh\r\nmkdir electron-node-hang\r\ncd electron-node-hang\r\nnpm init -y\r\nnpm install electron-prebuilt babel-register --save\r\nELECTRON_RUN_AS_NODE=true node_modules/.bin/electron -e \"require('babel-register')\"\r\n```"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/203938612","html_url":"https://github.com/atom/electron/issues/4944#issuecomment-203938612","issue_url":"https://api.github.com/repos/atom/electron/issues/4944","id":203938612,"user":{"login":"zcbenz","id":639601,"avatar_url":"https://avatars.githubusercontent.com/u/639601?v=3","gravatar_id":"","url":"https://api.github.com/users/zcbenz","html_url":"https://github.com/zcbenz","followers_url":"https://api.github.com/users/zcbenz/followers","following_url":"https://api.github.com/users/zcbenz/following{/other_user}","gists_url":"https://api.github.com/users/zcbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/zcbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcbenz/subscriptions","organizations_url":"https://api.github.com/users/zcbenz/orgs","repos_url":"https://api.github.com/users/zcbenz/repos","events_url":"https://api.github.com/users/zcbenz/events{/privacy}","received_events_url":"https://api.github.com/users/zcbenz/received_events","type":"User","site_admin":true},"created_at":"2016-03-31T13:34:35Z","updated_at":"2016-03-31T13:34:35Z","body":"This is essentially a duplicate of #4265 and should have been fixed by #4927, the fix will be included in next release."}}