mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
d23dfa4dcb
commit
9763e2fba9
1 file changed
+1
-1
+1
-1
@@ -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>();
|
||||
|
||||
Reference in new issue
Block a user