Skip to content

Commit ca24eac

Browse files
addaleaxdanielleadams
authored andcommitted
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 d1e6989 commit ca24eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/README.md

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy