Skip to content

Commit 9763e2f

Browse files
addaleaxruyadorno
authored andcommitted
src: fix typo in src/README.md
PR-URL: #44009 Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
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)