Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PassiveLogic/JavaScriptKit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: swiftwasm/JavaScriptKit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 14 commits
  • 155 files changed
  • 7 contributors

Commits on Nov 3, 2026

  1. Configuration menu
    Copy the full SHA
    f1d5c94 View commit details
    Browse the repository at this point in the history
  2. PackageToJS: Import only the UWASI features Swift needs

    The UWASI platform wrappers imported `useAll` and `MemoryFileSystem`,
    so bundles always carried UWASI's in-memory file system and came out
    larger than the browser_wasi_shim default. Import `useStdio`, `useArgs`,
    `useEnviron`, `useClock`, `usePoll`, `useProc` and `useRandom` instead.
    File syscalls now return ENOSYS.
    
    With `--enable-code-coverage`, the Node wrapper adds `useMemoryFS`,
    because the test runner reads the coverage profile through
    `extractFile`. The browser wrapper never imports a file system.
    krodak committed Nov 3, 2026
    Configuration menu
    Copy the full SHA
    817304f View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2026

  1. Configuration menu
    Copy the full SHA
    baaa759 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f1087c View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2026

  1. Runtime: Copy only the view's window in swjs_load_typed_array (swiftw…

    …asm#810)
    
    * Runtime: Copy only the view's window in swjs_load_typed_array
    
    `new Uint8Array(typedArray.buffer)` views the whole backing `ArrayBuffer`,
    ignoring the `byteOffset` and `byteLength` of the view it was handed. A view
    with a non-zero offset (anything from `subarray`, or
    `new Uint8Array(buffer, offset, length)`) therefore arrives in the guest
    shifted by that offset, silently wrong rather than failing.
    
    It is also a memory-safety bug: `JSTypedArray.copyMemory(to:)` sizes the
    destination from the view's own `length`, so whenever the view is smaller
    than its backing buffer the runtime writes past the end of the destination
    and corrupts whatever follows it in linear memory.
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    
    * Tests: Use Int32(bitPattern:) for the 0xDEADBEEF sentinel
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    
    ---------
    
    Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
    kateinoigakukun and claude authored Nov 7, 2026
    Configuration menu
    Copy the full SHA
    0cd2df4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0a1c5a8 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2026

  1. Configuration menu
    Copy the full SHA
    ee05433 View commit details
    Browse the repository at this point in the history
  2. Merge pull request swiftwasm#834 from PassiveLogic/kr/ci-swift-6.3

    CI: Move CI, package manifests and docs to Swift 6.3
    krodak authored Nov 25, 2026
    Configuration menu
    Copy the full SHA
    1db1901 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2026

  1. Runtime: Stop deduplicating JSObject references in the object heap (s…

    …wiftwasm#835)
    
    JSObject.== now compares with JS `===`, and the Hashable conformance that relied on deduplicated ids is removed.
    kateinoigakukun authored Nov 27, 2026
    Configuration menu
    Copy the full SHA
    0628da7 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2026

  1. Add noncopyable JSUniqueRef with heap references skipping deduplica…

    …tion (swiftwasm#830)
    
    Add noncopyable `JSUniqueRef` and make `JSObject` own one
    
    `JSUniqueRef` owns one JavaScript object reference and releases it in its
    `deinit`. Since the object heap no longer deduplicates references (swiftwasm#835), it
    needs no runtime support: it holds a reference exactly like `JSObject` does,
    without a Swift heap allocation.
    
    `JSObject` now stores a `JSUniqueRef`, and `init(_ ref: consuming JSUniqueRef)`
    is its only designated initializer. Releasing, including routing the release
    to the owner thread, happens in one place, `JSUniqueRef.deinit`, and
    `JSObject.deinit` is gone. `init(id:)` remains as a convenience initializer
    that adopts `id`.
    
    `JSClosure` and `JSOneshotClosure` still key their host functions by
    `ObjectIdentifier(self)`, so they still start from a placeholder reference of
    0. They now hand the real reference over with `_replacePlaceholderRef(with:)`,
    which swaps it in and takes the placeholder out without releasing it.
    
    Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
    MaxDesiatov and kateinoigakukun authored Nov 28, 2026
    Configuration menu
    Copy the full SHA
    1edf6b3 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2026

  1. BridgeJS: Fix building the BridgeJS and PackageToJS plugins on Windows (

    swiftwasm#838)
    
    Claude-Session: https://claude.ai/code/session_01PTxV5VQUn7st6eUgooE127
    
    Co-authored-by: Sebastian Godelet <2624915+sebgod@users.noreply.github.com>
    Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
    3 people authored Dec 1, 2026
    Configuration menu
    Copy the full SHA
    0dd53fb View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2026

  1. Configuration menu
    Copy the full SHA
    b383830 View commit details
    Browse the repository at this point in the history
  2. Merge pull request swiftwasm#839 from PassiveLogic/kr/bridgejs-option…

    …al-bool-import
    
    BridgeJS: Fix optional Bool returns from imported JS functions
    krodak authored Dec 2, 2026
    Configuration menu
    Copy the full SHA
    29dd909 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    33655d3 View commit details
    Browse the repository at this point in the history
Loading