diff --git a/src/string_bytes.h b/src/string_bytes.h index 87a296663e15aa..62a67247375518 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(); } size_t storage;