summaryrefslogtreecommitdiff
path: root/src/string_bytes.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-12-19 21:50:28 +0100
committerBeth Griggs <Bethany.Griggs@uk.ibm.com>2019-07-16 17:38:00 +0100
commita8f78f02cb05f1346110f0f1a61e63109e8ff38c (patch)
treea19aaebcbbadbd3220df312210862251cb66505f /src/string_bytes.h
parent14090b59fcafbb11c6df84b9aaee7a77cf6f0500 (diff)
downloadnode-new-a8f78f02cb05f1346110f0f1a61e63109e8ff38c.tar.gz
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/string_bytes.h')
-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 87a296663e..62a6724737 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;