Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electron, nwjs and Brackets-Shell #78

Closed
LinusU opened this issue Jun 16, 2015 · 5 comments
Closed

Electron, nwjs and Brackets-Shell #78

LinusU opened this issue Jun 16, 2015 · 5 comments

Comments

@LinusU
Copy link
Collaborator

LinusU commented Jun 16, 2015

Instead of detecting the browser I think that it would be better to detect a Node.js runtime since there are a number of projects that implements both.

This leads to uncaught exceptions not being fixed in Electron. Here is the offending line.

if (installHandler && !isInBrowser()) {
  process.on('uncaughtException', handleUncaughtExceptions);
}

It would be better to check for the process object:

if (installHandler && typeof process === 'object' && typeof process.on === 'function') {
  process.on('uncaughtException', handleUncaughtExceptions);
}
@julien-f
Copy link
Collaborator

Seems logic, do you mind doing a PR?

@LinusU
Copy link
Collaborator Author

LinusU commented Jun 16, 2015

Sure, mind having a look at all of my pull requests? 😄

@julien-f
Copy link
Collaborator

I have seen them but I d'on't have the time to review them for now.

Do they passes all tests? Even those in Chrome (https://github.com/evanw/node-source-map-support#tests)?

@LinusU
Copy link
Collaborator Author

LinusU commented Jun 16, 2015

Didn't know there where manual tests :D it would be cool to automate them with maybe phantomjs!

Anyhow, I'll make sure to run them!

@julien-f
Copy link
Collaborator

Indeed (#80), feel free to do it if you have the time ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants