We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d23dfa4 commit 9763e2fCopy full SHA for 9763e2f
src/README.md
@@ -620,7 +620,7 @@ v8::Maybe<double> SumNumbers(v8::Local<v8::Context> context,
620
621
for (uint32_t i = 0; i < array_of_integers->Length(); i++) {
622
v8::Local<v8::Value> entry;
623
- if (array_of_integers->Get(context, i).ToLocal(&entry)) {
+ if (!array_of_integers->Get(context, i).ToLocal(&entry)) {
624
// Oops, we might have hit a getter that throws an exception!
625
// It's better to not continue return an empty (“nothing”) Maybe.
626
return v8::Nothing<double>();
0 commit comments