diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-12-19 23:50:28 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-12-30 22:15:39 +0300 |
commit | b4b9e0e28c434de926593e42248b7c18b7839b12 (patch) | |
tree | 36681c8bcd8c26bf6c557f40492e0627e7b7931a /src/string_bytes.h | |
parent | fe5b8dca40bbd209a319843d907e5ce809add8b4 (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/string_bytes.h')
-rw-r--r-- | src/string_bytes.h | 2 |
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; |