| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 153f292 commit b1c9f75
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -273,10 +273,10 @@ static void GetUserInfo(const FunctionCallbackInfo<Value>& args) { | |||
| 273 | 273 | Local<Object> options = args[0].As<Object>(); | |
| 274 | 274 | MaybeLocal<Value> maybe_encoding = options->Get(env->context(), | |
| 275 | 275 | env->encoding_string()); | |
| 276 | - if (maybe_encoding.IsEmpty()) | ||
| 277 | - return; | ||
| 276 | + Local<Value> encoding_opt; | ||
| 277 | + if (!maybe_encoding.ToLocal(&encoding_opt)) | ||
| 278 | + return; | ||
| 278 | 279 | ||
| 279 | - Local<Value> encoding_opt = maybe_encoding.ToLocalChecked(); | ||
| 280 | 280 | encoding = ParseEncoding(env->isolate(), encoding_opt, UTF8); | |
| 281 | 281 | } else { | |
| 282 | 282 | encoding = UTF8; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments