From b5b91c7aed395ffa1fbddde8dfc002e7d7c95532 Mon Sep 17 00:00:00 2001 From: Mohammed Essehemy Date: Fri, 22 Mar 2019 16:50:11 +0200 Subject: [PATCH] doc: change error message to 'not defined' PR-URL: https://github.com/nodejs/node/pull/26857 Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Vse Mozhet Byt --- doc/api/errors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/errors.md b/doc/api/errors.md index de299475d0080e..986c8e7e7e8d71 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -35,7 +35,7 @@ are handled using the [`try…catch` construct][try-catch] provided by the JavaScript language. ```js -// Throws with a ReferenceError because z is undefined +// Throws with a ReferenceError because z is not defined. try { const m = 1; const n = m + z;