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