Fixes dead loop when abort called in Win32/CI (#5197)
Disable the debug popup on MSVC/win32 by introduce new jerry_port_init function For not popup dialog when crash happend on MSVC/win32 Closed: #4463 JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
@@ -172,6 +172,7 @@ jerry_return (const jerry_value_t value) /**< return value */
|
||||
void
|
||||
jerry_init (jerry_init_flag_t flags) /**< combination of Jerry flags */
|
||||
{
|
||||
jerry_port_init ();
|
||||
#if JERRY_EXTERNAL_CONTEXT
|
||||
size_t total_size = jerry_port_context_alloc (sizeof (jerry_context_t));
|
||||
JERRY_UNUSED (total_size);
|
||||
|
||||
@@ -49,6 +49,11 @@ typedef enum
|
||||
JERRY_FATAL_FAILED_ASSERTION = 120 /**< Assertion failed */
|
||||
} jerry_fatal_code_t;
|
||||
|
||||
/**
|
||||
* Init the program
|
||||
*/
|
||||
void jerry_port_init (void);
|
||||
|
||||
/**
|
||||
* Signal the port that the process experienced a fatal failure from which it cannot
|
||||
* recover.
|
||||
|
||||
Reference in New Issue
Block a user