The MSVC (cl.exe) don't support c++ exception by default, you should pass compile argument /EHsc
if use gyp build script, modify like this
'configurations': {
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': '0',
'Optimization': '2',
'EnableIntrinsicFunctions': 'true',
'DebugInformationFormat': '3',
'RuntimeTypeInfo': '/GR',
'AdditionalOptions': ['/utf-8'],
'ExceptionHandling': '1' // 添加此行
},
'VCLinkerTool': {
'GenerateDebugInformation': 'true',
'GenerateMapFile': 'false'
}
}
}
}
if not set, the app will killed by abort(), without core dump.