فهرست منبع

fix(tauri.js) promisified API fails on Reflect.deleteProperty, fix #1038 (#1056)

Lucas Fernandes Nogueira 4 سال پیش
والد
کامیت
c8b167adb3
3فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 5 0
      .changes/delete-property.md
  2. 2 1
      cli/tauri.js/api-src/tauri.ts
  3. 0 0
      tauri/examples/communication/dist/index.tauri.html

+ 5 - 0
.changes/delete-property.md

@@ -0,0 +1,5 @@
+---
+"tauri.js": patch
+---
+
+Fixes `Reflect.deleteProperty` on promisified API calls failing with `Unable to delete property` by making it configurable.

+ 2 - 1
cli/tauri.js/api-src/tauri.ts

@@ -50,7 +50,8 @@ function transformCallback(
 
       return callback?.(result)
     },
-    writable: false
+    writable: false,
+    configurable: true
   })
 
   return identifier

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
tauri/examples/communication/dist/index.tauri.html


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است