Skip to content
Permalink
Browse files

src: fulfill Maybe contract in InlineDecoder

Use an empty/nothing `Maybe<>` to indicate a pending exception.

PR-URL: #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>
  • Loading branch information...
addaleax authored and targos committed Dec 19, 2018
1 parent f3ebc39 commit c9d49d65a4f815a49e90023f709072a8d398aa62
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit c9d49d6

Please sign in to comment.
You can’t perform that action at this time.