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.
  • 6 commits
  • 101 files changed
  • 3 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
Loading