File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1488,8 +1488,8 @@ void FatalException(Isolate* isolate,
14881488 Environment* env = Environment::GetCurrent (isolate);
14891489 Local<Object> process_object = env->process_object ();
14901490 Local<String> fatal_exception_string = env->fatal_exception_string ();
1491- Local<Function > fatal_exception_function =
1492- process_object->Get (fatal_exception_string). As <Function>() ;
1491+ Local<Value > fatal_exception_function =
1492+ process_object->Get (fatal_exception_string);
14931493
14941494 if (!fatal_exception_function->IsFunction ()) {
14951495 // Failed before the process._fatalException function was added!
@@ -1504,7 +1504,8 @@ void FatalException(Isolate* isolate,
15041504
15051505 // This will return true if the JS layer handled it, false otherwise
15061506 Local<Value> caught =
1507- fatal_exception_function->Call (process_object, 1 , &error);
1507+ fatal_exception_function.As <Function>()
1508+ ->Call (process_object, 1 , &error);
15081509
15091510 if (fatal_try_catch.HasTerminated ())
15101511 return ;
You can’t perform that action at this time.
0 commit comments