Skip to content

BunProfile: SHA3, X25519, markdown.ansi, rapidhash; disable WebView#9

Merged
dylan-conway merged 2 commits intomainfrom
claude/cool-bhaskara-341a0e
Apr 19, 2026
Merged

BunProfile: SHA3, X25519, markdown.ansi, rapidhash; disable WebView#9
dylan-conway merged 2 commits intomainfrom
claude/cool-bhaskara-341a0e

Conversation

@dylan-conway
Copy link
Copy Markdown
Member

Summary

Adds fuzz coverage for Bun APIs that landed recently and aren't yet exercised by the profile.

These changes are independent of #8 (which covers Bun.cron, sliceAnsi, etc.) and apply cleanly on top of it with one trivial conflict in the Bun.markdown method list.

Test plan

  • swift build passes with no new warnings

…View

- Add sha3-224/256/384/512 to CryptoHasher algorithm pool
- Add BunSubtleCryptoGenerator exercising crypto.subtle.digest with SHA3-*
  and X25519 generateKey/deriveBits
- Exercise Bun.markdown.ansi alongside .html
- Register Bun.hash.rapidhash builtin
- Set Bun.WebView = undefined in codePrefix so fuzz samples don't spawn
  browser processes
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 18, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f4638c98-6539-4306-b515-fd7ad71d335c

📥 Commits

Reviewing files that changed from the base of the PR and between 3c5428b and 83b057f.

📒 Files selected for processing (1)
  • Tests/FuzzilliTests/EnvironmentTest.swift

Walkthrough

Added SHA3 algorithms and a rapidhash builtin, introduced a new BunSubtleCryptoGenerator exercising crypto.subtle, expanded Bun.markdown to include ansi, disabled Bun.WebView in bootstrap, and removed one experimental flag from a test invocation.

Changes

Cohort / File(s) Summary
Bun profile — crypto, hash, markdown, bootstrap
Sources/Fuzzilli/Profiles/BunProfile.swift
Added SHA3 algorithms to hashing inputs and ILType.hashAlgorithmEnum; added Bun.hash.rapidhash builtin; added public BunSubtleCryptoGenerator (uses subtle.digest + X25519 deriveBits); updated BunMarkdownGenerator to call markdown.html or markdown.ansi; registered new generator; disabled Bun.WebView in fuzzing bootstrap.
Test invocation flag change
Tests/FuzzilliTests/EnvironmentTest.swift
Removed --experimental-wasm-rab-integration from testJSEnvironmentLive() executor flags; other flags unchanged.
🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and concisely summarizes all five main changes in the PR: SHA3 algorithms, X25519 key derivation, markdown.ansi support, rapidhash builtin, and WebView disabling.
Description check ✅ Passed The description is well-organized and directly related to the changeset, providing context for each change with references to specific Bun issues and explaining the rationale behind each modification.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

V8 removed this flag, which caused testJSEnvironmentLive to fail with
'Warning: unknown flag --experimental-wasm-rab-integration'.
@dylan-conway dylan-conway merged commit c24c01b into main Apr 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant