swiftwasm / JavaScriptKit

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

Add support for Symbol objects via JSSymbol #179

Closed j-f1 closed 2 years ago

j-f1 commented 2 years ago

This PR adds support for the Symbol type, including both properties on the Symbol object itself and support for accessing Symbol-keyed properties on JSObject instances.

github-actions[bot] commented 2 years ago

Time Change: +12.75ms (3%)

Total Time: 339ms

Test name Duration Change
Serialization/Write JavaScript string directly 179.25ms +13.25ms (7%) 🔍
ℹ️ View Unchanged | Test name | Duration | Change | | :--- | :---: | :---: | | Serialization/Write JavaScript number directly | 159.75ms | -0.5ms |

performance-action