Skip to content

Commit 8894f27

Browse files
targosAli Sheikh
authored and
Ali Sheikh
committed
src: replace deprecated CancelTerminateExecution
PR-URL: #5159 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent f50ef1a commit 8894f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_contextify.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ class ContextifyScript : public BaseObject {
837837
}
838838

839839
if (try_catch.HasCaught() && try_catch.HasTerminated()) {
840-
V8::CancelTerminateExecution(env->isolate());
840+
env->isolate()->CancelTerminateExecution();
841841
env->ThrowError("Script execution timed out.");
842842
try_catch.ReThrow();
843843
return false;

0 commit comments

Comments
 (0)