Skip to content

Commit 957043f

Browse files
committed
Merge pull request #613 from heavyk/remove-fatalexception
remove non-isolate FatalException
2 parents 56c9ba3 + 3e69c59 commit 957043f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

generate/templates/partials/async_function.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ void {{ cppClassName }}::{{ cppFunctionName }}Worker::Execute() {
103103
}
104104

105105
void {{ cppClassName }}::{{ cppFunctionName }}Worker::HandleOKCallback() {
106-
TryCatch try_catch;
107-
108106
if (baton->error_code == GIT_OK) {
109107
{%if not .|returnsCount %}
110108
Handle<v8::Value> result = NanUndefined();
@@ -162,10 +160,6 @@ void {{ cppClassName }}::{{ cppFunctionName }}Worker::HandleOKCallback() {
162160
{%endeach%}
163161
}
164162

165-
if (try_catch.HasCaught()) {
166-
node::FatalException(try_catch);
167-
}
168-
169163
{%each args|argsInfo as arg %}
170164
{%if arg.isCppClassStringOrArray %}
171165
{%if arg.freeFunctionName %}

0 commit comments

Comments
 (0)