瀏覽代碼

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


部分文件因文件數量過多而無法顯示