@@ -391,13 +391,19 @@ void Blob::StoreDataObject(const v8::FunctionCallbackInfo<v8::Value>& args) {
391391
392392 size_t length = args[2 ].As <Uint32>()->Value ();
393393 Utf8Value type (env->isolate (), args[3 ]);
394+ std::string key_str (*key, key.length ());
394395
395396 binding_data->store_data_object (
396- std::string (*key, key.length ()),
397- BlobBindingData::StoredDataObject (
398- BaseObjectPtr<Blob>(blob),
399- length,
400- std::string (*type, type.length ())));
397+ key_str,
398+ BlobBindingData::StoredDataObject (BaseObjectPtr<Blob>(blob),
399+ length,
400+ std::string (*type, type.length ())));
401+ std::string final_url = " blob:nodedata:" + key_str;
402+ args.GetReturnValue ().Set (String::NewFromUtf8 (env->isolate (),
403+ final_url.c_str (),
404+ v8::NewStringType::kNormal ,
405+ final_url.length ())
406+ .ToLocalChecked ());
401407}
402408
403409void RevokeObjectURLImpl (std::string_view input,
@@ -431,7 +437,6 @@ void Blob::RevokeObjectURL(const FunctionCallbackInfo<Value>& args) {
431437
432438void Blob::FastRevokeObjectURL (Local<Value> receiver,
433439 const FastOneByteString& input) {
434- printf (" FastRevokeObjectURL\n " );
435440 BlobBindingData* binding_data = FromJSObject<BlobBindingData>(receiver);
436441 std::string_view input_view (input.data , input.length );
437442 RevokeObjectURLImpl (input_view, binding_data);
0 commit comments