From e2773425f074dac279cdbde0df00b2d2859e9b74 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Thu, 1 Feb 2024 09:34:12 -0800 Subject: [PATCH] doc: fix uncaught exception example --- doc/api/process.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/process.md b/doc/api/process.md index fcec605380b46b..cba729063d8a04 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -360,6 +360,7 @@ exit with 0. ```mjs import process from 'node:process'; +import fs from 'node:fs'; process.on('uncaughtException', (err, origin) => { fs.writeSync( @@ -380,6 +381,7 @@ console.log('This will not run.'); ```cjs const process = require('node:process'); +const fs = require('node:fs'); process.on('uncaughtException', (err, origin) => { fs.writeSync(