@@ -185,7 +185,7 @@ void DisposeIsolateWhenPossible(Isolate* isolate) {
185185 URL.createObjectURL = function (object, options = null) {
186186 try {
187187 if (object instanceof Blob || object instanceof File) {
188- const id = java.util. UUID.randomUUID ().toString() ;
188+ const id = NSUUID. UUID().UUIDString ;
189189 const ret = `blob:nativescript/${id}`;
190190 BLOB_STORE.set(ret, {
191191 blob: object,
@@ -252,11 +252,6 @@ void DisposeIsolateWhenPossible(Isolate* isolate) {
252252 }
253253
254254
255-
256-
257-
258-
259-
260255
261256 this ->moduleInternal_ = std::make_unique<ModuleInternal>(context);
262257
@@ -396,21 +391,6 @@ void DisposeIsolateWhenPossible(Isolate* isolate) {
396391 return std::find (Runtime::isolates_.begin (), Runtime::isolates_.end (), isolate) != Runtime::isolates_.end ();
397392}
398393
399-
400- void Runtime::DefineURL (Isolate* isolate, Local<ObjectTemplate> globalTemplate) {
401- auto URLTemplate = URLImpl::GetCtor (isolate);
402-
403- Local<v8::String> urlPropertyName = ToV8String (isolate, " URL" );
404- globalTemplate->Set (urlPropertyName, URLTemplate);
405- }
406-
407- void Runtime::DefineURLSearchParams (Isolate* isolate, Local<ObjectTemplate> globalTemplate) {
408- auto URLSearchParamsTemplate = URLSearchParamsImpl::GetCtor (isolate);
409-
410- Local<v8::String> urlSearchParamsPropertyName = ToV8String (isolate, " URLSearchParams" );
411- globalTemplate->Set (urlSearchParamsPropertyName, URLSearchParamsTemplate);
412- }
413-
414394std::shared_ptr<Platform> Runtime::platform_;
415395std::vector<Isolate*> Runtime::isolates_;
416396bool Runtime::v8Initialized_ = false ;
0 commit comments