Skip to content

Commit 172f11f

Browse files
Anna Henningsenrefack
authored andcommitted
src: fulfill Maybe contract in InlineDecoder
Use an empty/nothing `Maybe<>` to indicate a pending exception. PR-URL: nodejs#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 b6e960f commit 172f11f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string_bytes.h

Lines changed: 1 addition & 1 deletion
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)