Skip to content

Commit 78c8462

Browse files
addaleaxjuanarbol
authored andcommittedOct 11, 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 88b0d40 commit 78c8462

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
@@ -619,7 +619,7 @@ v8::Maybe<double> SumNumbers(v8::Local<v8::Context> context,
619619
620620
for (uint32_t i = 0; i < array_of_integers->Length(); i++) {
621621
v8::Local<v8::Value> entry;
622-
if (array_of_integers->Get(context, i).ToLocal(&entry)) {
622+
if (!array_of_integers->Get(context, i).ToLocal(&entry)) {
623623
// Oops, we might have hit a getter that throws an exception!
624624
// It's better to not continue return an empty (“nothing”) Maybe.
625625
return v8::Nothing<double>();

0 commit comments

Comments
 (0)
Please sign in to comment.