From a3fd638d6a7a4ed83590903407ca6979af4a87e3 Mon Sep 17 00:00:00 2001 From: win Date: Sat, 18 May 2019 16:26:44 +0700 Subject: [PATCH] update patch for v10.15.3 --- node_patches/node10.15.3_modified/src/node.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/node_patches/node10.15.3_modified/src/node.cc b/node_patches/node10.15.3_modified/src/node.cc index ed8f2d48..867cf5a7 100644 --- a/node_patches/node10.15.3_modified/src/node.cc +++ b/node_patches/node10.15.3_modified/src/node.cc @@ -131,6 +131,9 @@ typedef int mode_t; //#espresso ,#1 #include "../src/libespresso/bridge2.h" void DoEngineSetupCallback(JsEngine* engine, JsContext* jsContext); +void DoEngineClosingCallback(JsEngine* engine, + JsContext* jsContext, + int exitCode); ////////////////////////////////// namespace node { @@ -2905,6 +2908,11 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data, const int exit_code = EmitExit(&env); + //////////////////////////////// + //#espresso ,#3 + DoEngineClosingCallback(jsEngine, jscontext, exit_code); + //////////////////////////////// + WaitForInspectorDisconnect(&env); env.set_can_call_into_js(false);