Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-12-19 23:50:28 +0300
committerBeth Griggs <Bethany.Griggs@uk.ibm.com>2019-07-16 19:38:00 +0300
commita8f78f02cb05f1346110f0f1a61e63109e8ff38c (patch)
treea19aaebcbbadbd3220df312210862251cb66505f /src
parent14090b59fcafbb11c6df84b9aaee7a77cf6f0500 (diff)
src: fulfill Maybe contract in InlineDecoder
Use an empty/nothing `Maybe<>` to indicate a pending exception. PR-URL: https://github.com/nodejs/node/pull/25140 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/string_bytes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_bytes.h b/src/string_bytes.h
index 87a296663e1..62a67247375 100644
--- a/src/string_bytes.h
+++ b/src/string_bytes.h
@@ -42,7 +42,7 @@ class StringBytes {
enum encoding enc = ParseEncoding(env->isolate(), encoding, _default);
if (!StringBytes::IsValidString(string, enc)) {
env->ThrowTypeError("Bad input string");
- return v8::Just(false);
+ return v8::Nothing<bool>();
}
size_t storage;