| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c1f1dbd commit eb99eec
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ inline std::unique_ptr<v8_inspector::StringBuffer> ToInspectorString( | |||
| 19 | 19 | inline protocol::String ToProtocolString(v8::Isolate* isolate, | |
| 20 | 20 | v8::Local<v8::Value> value) { | |
| 21 | 21 | Utf8Value buffer(isolate, value); | |
| 22 | - return *buffer; | ||
| 22 | + return buffer.ToString(); | ||
| 23 | 23 | } | |
| 24 | 24 | ||
| 25 | 25 | } // namespace node::inspector | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -442,11 +442,9 @@ void Blob::StoreDataObject(const FunctionCallbackInfo<Value>& args) { | |||
| 442 | 442 | Utf8Value type(isolate, args[3]); | |
| 443 | 443 | ||
| 444 | 444 | binding_data->store_data_object( | |
| 445 | - std::string(*key, key.length()), | ||
| 445 | + key.ToString(), | ||
| 446 | 446 | BlobBindingData::StoredDataObject( | |
| 447 | - BaseObjectPtr<Blob>(blob), | ||
| 448 | - length, | ||
| 449 | - std::string(*type, type.length()))); | ||
| 447 | + BaseObjectPtr<Blob>(blob), length, type.ToString())); | ||
| 450 | 448 | } | |
| 451 | 449 | ||
| 452 | 450 | // Note: applying the V8 Fast API to the following function does not produce | |
@@ -486,7 +484,7 @@ void Blob::GetDataObject(const FunctionCallbackInfo<Value>& args) { | |||
| 486 | 484 | Utf8Value key(isolate, args[0]); | |
| 487 | 485 | ||
| 488 | 486 | BlobBindingData::StoredDataObject stored = | |
| 489 | - binding_data->get_data_object(std::string(*key, key.length())); | ||
| 487 | + binding_data->get_data_object(key.ToString()); | ||
| 490 | 488 | if (stored.blob) { | |
| 491 | 489 | Local<Value> type; | |
| 492 | 490 | if (!String::NewFromUtf8(isolate, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -284,10 +284,10 @@ ContextifyContext* ContextifyContext::New(Local<Context> v8_context, | |||
| 284 | 284 | options->allow_code_gen_wasm); | |
| 285 | 285 | ||
| 286 | 286 | Utf8Value name_val(env->isolate(), options->name); | |
| 287 | - ContextInfo info(*name_val); | ||
| 287 | + ContextInfo info(name_val.ToString()); | ||
| 288 | 288 | if (!options->origin.IsEmpty()) { | |
| 289 | 289 | Utf8Value origin_val(env->isolate(), options->origin); | |
| 290 | - info.origin = *origin_val; | ||
| 290 | + info.origin = origin_val.ToString(); | ||
| 291 | 291 | } | |
| 292 | 292 | ||
| 293 | 293 | ContextifyContext* result; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -276,12 +276,12 @@ inline void THROW_ERR_REQUIRE_ASYNC_MODULE( | |||
| 276 | 276 | if (!parent_filename.IsEmpty() && parent_filename->IsString()) { | |
| 277 | 277 | Utf8Value utf8(env->isolate(), parent_filename); | |
| 278 | 278 | message += "\n From "; | |
| 279 | - message += utf8.out(); | ||
| 279 | + message += utf8.ToStringView(); | ||
| 280 | 280 | } | |
| 281 | 281 | if (!filename.IsEmpty() && filename->IsString()) { | |
| 282 | 282 | Utf8Value utf8(env->isolate(), filename); | |
| 283 | 283 | message += "\n Requiring "; | |
| 284 | - message += +utf8.out(); | ||
| 284 | + message += utf8.ToStringView(); | ||
| 285 | 285 | } | |
| 286 | 286 | THROW_ERR_REQUIRE_ASYNC_MODULE(env, message.c_str()); | |
| 287 | 287 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1368,7 +1368,7 @@ std::unique_ptr<TransferData> JSTransferable::TransferOrClone() const { | |||
| 1368 | 1368 | } | |
| 1369 | 1369 | Utf8Value deserialize_info_str(env()->isolate(), deserialize_info); | |
| 1370 | 1370 | if (*deserialize_info_str == nullptr) return {}; | |
| 1371 | - return std::make_unique<Data>(*deserialize_info_str, | ||
| 1371 | + return std::make_unique<Data>(deserialize_info_str.ToString(), | ||
| 1372 | 1372 | Global<Value>(env()->isolate(), data)); | |
| 1373 | 1373 | } | |
| 1374 | 1374 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,7 @@ bool SetOption(Environment* env, | |||
| 39 | 39 | if (!object->Get(env->context(), name).ToLocal(&value)) return false; | |
| 40 | 40 | if (!value->IsUndefined()) { | |
| 41 | 41 | Utf8Value utf8(env->isolate(), value); | |
| 42 | - options->*member = *utf8; | ||
| 42 | + options->*member = utf8.ToString(); | ||
| 43 | 43 | } | |
| 44 | 44 | return true; | |
| 45 | 45 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments