Skip to content

remove non-isolate FatalException#613

Merged
tbranyen merged 1 commit into
nodegit:masterfrom
heavyk:remove-fatalexception
Jun 23, 2015
Merged

remove non-isolate FatalException#613
tbranyen merged 1 commit into
nodegit:masterfrom
heavyk:remove-fatalexception

Conversation

@heavyk

@heavyk heavyk commented Jun 21, 2015

Copy link
Copy Markdown
Contributor
The non-isolate version of node::FatalException() has been deprecated
in io.js; more precisely, it's deprecated in node.js v0.12 as well but
a bug in joyent/node prevents the deprecation warning from printing.

We don't have to catch exceptions ourselves.  Exceptions simply unwind
the stack until they encounter a try/catch block is encountered or the
fatal exception handler in the io.js or node.js run-time.

commit message modified from bnoordhuis/node-unix-dgram@314858e

no tests fail. works the same for me.
though, I'm not sure how node-0.10 would work.
I think it'd be the same though - a fatal exception is a fatal exception.

The non-isolate version of node::FatalException() has been deprecated
in io.js; more precisely, it's deprecated in node.js v0.12 as well but
a bug in joyent/node prevents the deprecation warning from printing.

We don't have to catch exceptions ourselves.  Exceptions simply unwind
the stack until they encounter a try/catch block is encountered or the
fatal exception handler in the io.js or node.js run-time.
@tbranyen

Copy link
Copy Markdown
Member

I'm okay with this change. I don't really care to support Node 0.10 anyways.

tbranyen added a commit that referenced this pull request Jun 23, 2015
remove non-isolate FatalException
@tbranyen tbranyen merged commit 957043f into nodegit:master Jun 23, 2015
@tbranyen

Copy link
Copy Markdown
Member

Thanks for the PR!

@heavyk heavyk deleted the remove-fatalexception branch June 24, 2015 00:52
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

Successfully merging this pull request may close these issues.

2 participants