Exception is occured when extension cleanup by web device api. (exit())
because, before-quit event did not occur.
Change-Id: Iea468e56347ab14459fa5b4b4b6e21ac64ba8371
Signed-off-by: SangYong Park <sy302.park@samsung.com>
Eina_Stringshare* msg_ref_id = msg->GetReferenceId();
Eina_Stringshare* msg_value = msg->GetValue();
if (TYPE_IS("tizen://exit")) {
- atom::Browser *browser_model = atom::Browser::Get();
- browser_model->Shutdown();
+ atom::Browser::Get()->Quit();
}
eina_stringshare_del(msg_ref_id);
process.env.DEBUG = originalDebug;
}
+process.on('uncaughtException', function (error) {
+ // Do nothing if the user has a custom uncaught exception handler.
+ var ref, stack
+ stack = (ref = error.stack) != null ? ref : error.name + ': ' + error.message
+ console.error('A JavaScript error occurred in the main process\n' + stack)
+})
+
let parseCommandLine = function() {
let options = yargs(process.argv.slice(1)).wrap(80);
options.usage('WebRuntime');