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

## What this adds Calls out to modules with `wasm-opt`'s `--asyncify` pass to unwind and rewind the module's call stack when we want to put Swift execution to sleep while...

enhancement

Now that `JSClosure` and `JSOneshotClosure` are no longer subclasses of `JSFunction`, how are they supposed to be converted to `JSValue`? Should the `object` case be used?

question

Currently, JavaScript-based features must be directly implemented in JavaScriptKit to be able to access important features like the heap and the JSValue parsing/serializing routines. This means that less-common things like...

enhancement

It would be great if we could provide shims for Dispatch and Foundation APIs that rely on JS hosts directly instead of WASI. The problem is that Dispatch and Foundation...

I made a small change to report whenever an object ref is deleted: ```patch --- Runtime/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/Runtime/src/index.ts b/Runtime/src/index.ts index 0e641ff..ddfba4e...

enhancement

```diff enum JSValue { - case string(String) + case string(JSString) } + class JSString: JSBridgeClass, StringProtocol { + internal let id: JavaScriptObjectRef + ... + } ```

```swift console.log(data: "arr transformed") let array: [UInt8] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] let jsArray: Uint8ClampedArray = .init(array) console.log(data: "newData created") let newImage =...

It adds an ability to use the original `JavaScriptKit` in Embedded Swift All the targets has been copied with `Embedded` suffix and uses the original source code via symlinks in...

Seems like something wrong is happening in https://github.com/swiftwasm/JavaScriptKit/actions/runs/8659623850. I need stress test this before re-landing this. This reverts commit 8780e5f005933c1d83d74942a14f78c1fc03e499.