Skip to content

Commit e6d4fc9

Browse files
committed
- Add GC support: struct/array types, object DSL with mut(), typed field accessors
- Add exception handling: importTag, exportTag, tag section - Expand BinaryReader: GC types, tags, data count section, passive segments - Expand WatParser: struct/array/rec types, tags, reference types - Type-harden OpCodeEmitter: replace any with proper types - Rename defineFuncType → defineFunctionType, defineTableSegment → defineElementSegment (old kept as deprecated) - Improve operand stack verification for GC/tags/memory64 - Clean up index.ts exports: remove internals, add shorthand type aliases - Remove disableVerification from playground examples (verifier now handles them) - Fix br_table signature in api.md - Add missing classes/methods/types to api.md
1 parent 25b1098 commit e6d4fc9

40 files changed

Lines changed: 12261 additions & 8251 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ TypeScript library for programmatically generating WebAssembly modules. Build WA
1010
## Features
1111

1212
- Fluent builder pattern for constructing WASM modules
13-
- **531 instructions** — arithmetic, control flow, memory, tables, globals, SIMD, atomics, exception handling
13+
- **562 instructions** — arithmetic, control flow, memory, tables, globals, SIMD, atomics, GC, exception handling
1414
- **Target system**`mvp`, `2.0`, `3.0`, `latest` with automatic feature gating
1515
- i32, i64, f32, f64, v128 value types with BigInt support for i64
1616
- **128-bit SIMD** — 236 vector instructions + 20 relaxed SIMD
@@ -165,7 +165,7 @@ See the [API Reference](docs/api.md) for complete documentation.
165165

166166
## Playground
167167

168-
Try webasmjs in the browser with the [interactive playground](https://devnamedzed.github.io/webasmjs/). It includes 40+ examples covering arithmetic, control flow, memory, tables, imports, floating point, i64/BigInt, SIMD, algorithms, WAT parsing, and post-MVP features.
168+
Try webasmjs in the browser with the [interactive playground](https://devnamedzed.github.io/webasmjs/). It includes 100+ examples covering arithmetic, control flow, memory, tables, imports, floating point, i64/BigInt, SIMD, GC types, algorithms, WAT parsing, and post-MVP features.
169169

170170
To run the playground locally:
171171

0 commit comments

Comments
 (0)