Skip to content

Commit 9763e2f

Browse files
addaleaxruyadorno
authored andcommittedAug 22, 2022
src: fix typo in src/README.md
PR-URL: #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>
1 parent d23dfa4 commit 9763e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ v8::Maybe<double> SumNumbers(v8::Local<v8::Context> context,
620620
621621
for (uint32_t i = 0; i < array_of_integers->Length(); i++) {
622622
v8::Local<v8::Value> entry;
623-
if (array_of_integers->Get(context, i).ToLocal(&entry)) {
623+
if (!array_of_integers->Get(context, i).ToLocal(&entry)) {
624624
// Oops, we might have hit a getter that throws an exception!
625625
// It's better to not continue return an empty (“nothing”) Maybe.
626626
return v8::Nothing<double>();

0 commit comments

Comments
 (0)