Skip to content

Commit c9d49d6

Browse files
addaleaxtargos
authored andcommitted
src: fulfill Maybe contract in InlineDecoder
Use an empty/nothing `Maybe<>` to indicate a pending exception. PR-URL: #25140 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent f3ebc39 commit c9d49d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string_bytes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class StringBytes {
4242
enum encoding enc = ParseEncoding(env->isolate(), encoding, _default);
4343
if (!StringBytes::IsValidString(string, enc)) {
4444
env->ThrowTypeError("Bad input string");
45-
return v8::Just(false);
45+
return v8::Nothing<bool>();
4646
}
4747

4848
size_t storage;

0 commit comments

Comments
 (0)