JavaScriptKit icon indicating copy to clipboard operation
JavaScriptKit copied to clipboard

Swift framework to interact with JavaScript through WebAssembly.

Results 48 JavaScriptKit issues
Sort by recently updated
recently updated
newest added

## Motivation Current JS interop system, [JavaScriptKit](https://github.com/swiftwasm/JavaScriptKit), has two main issues: * It's based on dynamic, string-based method calls and properties access. * It's not type-safe and can easily lead...

Is there any documentation or is it even possible to access/subclass classes written in another JS library? Specifically, I'm looking to use [Phaser](https://phaser.io), but write my code with swift wasm....

Every dynamic JS function calls can throw an exception, but the current `JSObject` and `JSFunction` are non-throws by default. They can be throws by `.throws` or `.throwing` but it's still...

## Motivation Think the following situation: 1. The browser event loop has a pending event that fires an event listener that schedules high-priority work to JSKit's executor. 2. But [the...

This prevents the warnings for unused results through `@discardableResult` which means you no longer need `_ =` everywhere. TODO: Update comments and readme

as discussed in #477 This PR + makes sure the Runtime remains compatible with "isolatedModules" (ie: esbuild, rollup, ...) + move the JSBridge stubs out of the plugin template for...

I am working on a smooth vite-based "hot-reload" + build experience for an ElementaryUI starter template. I have it working well now, but the topic of how to bootstrap the...

https://swiftwasm.org/JavaScriptKit/PlayBridgeJS/?code=H4sIAAAAAAAAE2XOMQ7CMAwF0KtYnlqJE6Ri4gBcIEvUulFEsKPYBarSuyNEYSjT1x%2Fe119Q72k0dIgHHEzRIT2KVAObC8FJWCUTHGHxDACQJTZXUg2RHKjVxLF1cJM0dJ5XzxseJ%2B4tCUMlmyqfy7uEvM01rfstP4GnnDvP%2F9bChfay%2F%2BTefz%2Fg%2BgI9fyUN0QAAAA%3D%3D&enc=gzip-b64

## Motivation Currently, importing JavaScript APIs from the global scope requires users to write TypeScript declaration files and import APIs through the standard BridgeJS workflow. For simple use cases where...

Currently, `WebWorkerTaskExecutor` doesn't re-order jobs based on their priorities, but just schedules them in the order they are enqueued.