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 BethGriggs committed Dec 19, 2018
1 parent 14090b5 commit a8f78f02cb05f1346110f0f1a61e63109e8ff38c
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 a8f78f0

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