From 78c846265fed8f04aad6a3728ae9477fd760637e Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 27 Jul 2022 17:54:57 +0200 Subject: [PATCH] src: fix typo in src/README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/44009 Reviewed-By: Rafael Gonzaga Reviewed-By: Richard Lau Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen --- src/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/README.md b/src/README.md index 774614395afd40..8162deecb3cc83 100644 --- a/src/README.md +++ b/src/README.md @@ -619,7 +619,7 @@ v8::Maybe SumNumbers(v8::Local context, for (uint32_t i = 0; i < array_of_integers->Length(); i++) { v8::Local entry; - if (array_of_integers->Get(context, i).ToLocal(&entry)) { + if (!array_of_integers->Get(context, i).ToLocal(&entry)) { // Oops, we might have hit a getter that throws an exception! // It's better to not continue return an empty (“nothing”) Maybe. return v8::Nothing();