Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2022-07-27 18:54:57 +0300
committerFilip Skokan <panva.ip@gmail.com>2022-07-28 12:40:42 +0300
commit37b4f4799a3851208e427ec27d4bca7c1ae0d489 (patch)
tree44a83ee5d0b6312c7924655966b8e1c0cfc158e8 /src/README.md
parentbf970f7799b9e7c0bb97bde52308d7fe4b98fedc (diff)
src: fix typo in src/README.md
PR-URL: https://github.com/nodejs/node/pull/44009 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/README.md')
-rw-r--r--src/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/README.md b/src/README.md
index 774614395af..8162deecb3c 100644
--- a/src/README.md
+++ b/src/README.md
@@ -619,7 +619,7 @@ v8::Maybe<double> SumNumbers(v8::Local<v8::Context> context,
for (uint32_t i = 0; i < array_of_integers->Length(); i++) {
v8::Local<v8::Value> 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<double>();