| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d1e6989 commit ca24eac
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -619,7 +619,7 @@ v8::Maybe<double> SumNumbers(v8::Local<v8::Context> context, | |||
| 619 | 619 | ||
| 620 | 620 | for (uint32_t i = 0; i < array_of_integers->Length(); i++) { | |
| 621 | 621 | 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)) { | ||
| 623 | 623 | // Oops, we might have hit a getter that throws an exception! | |
| 624 | 624 | // It's better to not continue return an empty (“nothing”) Maybe. | |
| 625 | 625 | return v8::Nothing<double>(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments