Skip to content

[pull] main from swiftwasm:main - #7

Open
pull[bot] wants to merge 1314 commits into
majacQ:mainfrom
swiftwasm:main
Open

pull[bot] wants to merge 1314 commits into
majacQ:mainfrom
swiftwasm:main

Conversation

@pull

@pull pull Bot commented Jul 19, 2021 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull Bot added ⤵️ pull merge-conflict Resolve conflicts manually labels Jul 19, 2021
@atomist atomist Bot added auto-branch-delete:on-close Delete branch when pull request gets closed auto-merge-method:merge Auto-merge with merge commit auto-merge:on-bpr-success Auto-merge on passed branch protection rule labels Jul 19, 2021
@pull pull Bot removed auto-branch-delete:on-close Delete branch when pull request gets closed auto-merge-method:merge Auto-merge with merge commit auto-merge:on-bpr-success Auto-merge on passed branch protection rule labels Jul 19, 2021
krodak and others added 22 commits February 16, 2026 13:22
…ce-dirs

 BridgeJS: Include pluginGeneratedSources in build plugin input files
…writes

BridgeJS: Skip writing output files when content is unchanged
Also cover more access levels in `@JSFunction` tests.
…cope-fix

BridgeJS: Use indirect _exports lookup in wrap functions
…bal-cleanup

Runtime: Enforce prettier formatting, simplify find-global.ts
BridgeJS: Add runtime tests for `@JS class` to JSObject conversion
Also use `ProcessInfo.processInfo.arguments[0]` instead of `#filePath`
to detect changes to the plugin executable, which is more robust to
changes in the source file location.
PackageToJS: Rebuild bridge-js.js when BridgeJSLink is changed
BridgeJS: Fix SwiftHeapObject finalization registry leaks and double release
krodak and others added 30 commits September 15, 2026 15:13
BridgeJS: Support custom exported type names
…ream

BridgeJS: Support protocol refinement and constrained imports
BridgeJS: Support exporting protocol methods with async and throws
JavaScriptEventLoop: Add opt-in `yieldInterval` for host responsiveness
JavaScriptEventLoop: Avoid O(N^2) job queue insert for bursts of jobs
BridgeJS: Escape reserved words in exported function parameters
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.
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⤵️ pull merge-conflict Resolve conflicts manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.