mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 421231 js.c needs to call JSDB_TermDebugger r=brendan NPOTB
This commit is contained in:
parent
8c3435c2d7
commit
1daf469d2c
12
js/src/js.c
12
js/src/js.c
@ -3808,6 +3808,9 @@ main(int argc, char **argv, char **envp)
|
||||
#ifdef JSDEBUGGER_JAVA_UI
|
||||
JNIEnv *java_env;
|
||||
#endif
|
||||
#ifdef JSDEBUGGER_C_UI
|
||||
JSBool jsdbc;
|
||||
#endif /* JSDEBUGGER_C_UI */
|
||||
|
||||
CheckHelpMessages();
|
||||
setlocale(LC_ALL, "");
|
||||
@ -3888,7 +3891,7 @@ main(int argc, char **argv, char **envp)
|
||||
*/
|
||||
#endif /* JSDEBUGGER_JAVA_UI */
|
||||
#ifdef JSDEBUGGER_C_UI
|
||||
JSDB_InitDebugger(rt, _jsdc, 0);
|
||||
jsdbc = JSDB_InitDebugger(rt, _jsdc, 0);
|
||||
#endif /* JSDEBUGGER_C_UI */
|
||||
#endif /* JSDEBUGGER */
|
||||
|
||||
@ -3926,8 +3929,13 @@ main(int argc, char **argv, char **envp)
|
||||
result = ProcessArgs(cx, glob, argv, argc);
|
||||
|
||||
#ifdef JSDEBUGGER
|
||||
if (_jsdc)
|
||||
if (_jsdc) {
|
||||
#ifdef JSDEBUGGER_C_UI
|
||||
if (jsdbc)
|
||||
JSDB_TermDebugger(_jsdc);
|
||||
#endif /* JSDEBUGGER_C_UI */
|
||||
JSD_DebuggerOff(_jsdc);
|
||||
}
|
||||
#endif /* JSDEBUGGER */
|
||||
|
||||
#ifdef JS_THREADSAFE
|
||||
|
Loading…
Reference in New Issue
Block a user