Skip to content

Commit

Permalink
src: replace usage of deprecated CancelTerminateExecution
Browse files Browse the repository at this point in the history
PR-URL: #5159
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
targos committed Feb 11, 2016
1 parent 150efa6 commit b16d7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ class ContextifyScript : public BaseObject {
}

if (try_catch.HasCaught() && try_catch.HasTerminated()) {
V8::CancelTerminateExecution(env->isolate());
env->isolate()->CancelTerminateExecution();
env->ThrowError("Script execution timed out.");
try_catch.ReThrow();
return false;
Expand Down

0 comments on commit b16d7a6

Please sign in to comment.