Skip to content

Commit 78c8462

Browse files
addaleaxjuanarbol
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 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)