Forráskód Böngészése

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

Lucas Fernandes Nogueira 4 éve
szülő
commit
c8b167adb3

+ 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

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
tauri/examples/communication/dist/index.tauri.html


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott