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>
This commit is contained in:
Anna Henningsen authored and Ruy Adorno committed 2022-08-22 19:37:10 -04:00
1 parent d23dfa4dcb
commit 9763e2fba9
1 file changed
+1 -1
+1 -1
View File
@@ -620,7 +620,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>();