ãã¦ã Node.js ã®ã¨ã©ã¼ãã³ããªã³ã°ã¯é£ããã¨è¨ããã¦ã¾ããã 2016å¹´ç¾å¨ãã¤ã¾ãNodeã® v4 ã¨ã v6 ã主æµã«ãªãã Promise ãåºæ¬çãªå¦çã¨ãã¦æ¡ç¨ããã¦ããç¶æ³ã§ã¯ã©ãã§ãããããã¡ãã£ã¨èãã¦ã¿ã¾ãã ä¸å¿ããã®è£è¶³ã§ãã qiita.com TL;DR æªã ã«é£ããããã ãã Promise ã§æ¹åããã¦ãããasync-await ã zone ã¾ã§æ¥ããããªã楽ã«ãªãã ãã¨ã unhandledRejection ã uncaughtException ãããé ·ããã¨ã«ãªããªãã®ã§ã大åãã·ã«ãªã£ã¦ããã Node.js ã®ã¨ã©ã¼ãã³ããªã³ã°ã®é£ãã ã¾ã JavaScript ã«ã¯åæã¨éåæã®ã¨ã©ã¼ãã³ããªã³ã°ã®ããæ¹ãããã¾ããåè ã¯æè¬ try-catch ã«ããæ¹æ³ãå¾è 㯠callback ã使ã£ã¦ç¬¬ä¸å¼æ°ã§å®ç¾ããæ¹æ³ã emit(
{{#tags}}- {{label}}
{{/tags}}