swiftwasm / JavaScriptKit

Swift framework to interact with JavaScript through WebAssembly.
https://swiftpackageindex.com/swiftwasm/JavaScriptKit/main/documentation/javascriptkit
MIT License
664 stars 44 forks source link

Soft-fail integer conversion from JS values that are not representable #259

Closed kateinoigakukun closed 1 month ago

kateinoigakukun commented 1 month ago

Close https://github.com/swiftwasm/JavaScriptKit/issues/258

github-actions[bot] commented 1 month ago

Time Change: +419ms (4%)

Total Time: 9,712ms

Test name Duration Change
Serialization/JavaScript function call through Wasm import 20ms +1ms (6%) 🔍
Serialization/JavaScript function call through Wasm import with int 16ms +2ms (14%) ⚠️
Serialization/JavaScript function call from Swift 112ms +16ms (13%) ⚠️
Serialization/Swift Int to JavaScript with assignment 338ms +22ms (6%) 🔍
Serialization/Swift Int to JavaScript with call 980ms +52ms (5%) 🔍
Serialization/JavaScript Number to Swift Int 312ms +23ms (7%) 🔍
Serialization/Swift String to JavaScript with assignment 409ms +32ms (7%) 🔍
View Unchanged | Test name | Duration | Change | | :--- | :---: | :---: | | Serialization/Swift String to JavaScript with call | 1,021ms | +44ms (4%) | | Serialization/JavaScript String to Swift String | 3,784ms | +167ms (4%) | | Object heap/Increment and decrement RC | 2,706ms | +59ms (2%) |
View Baselines | Test name | Duration | | :--- | :---: | | Serialization/Call JavaScript function directly | 3ms | | Serialization/Assign JavaScript number directly | 3ms | | Serialization/Call with JavaScript number directly | 3ms | | Serialization/Write JavaScript string directly | 3ms | | Serialization/Call with JavaScript string directly | 2ms |