diff options
-rw-r--r-- | src/string_bytes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_bytes.h b/src/string_bytes.h index 87a296663e..62a6724737 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<bool>(); } size_t storage; |