You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Exception handling: tags (import, export, define)
- GC opcodes accept builder objects directly instead of requiring .index
- Disassembler: converts parsed WASM binary back to WAT
- Instruction decoder: decodes raw instruction bytes into structured objects
- BinaryReader now handles GC types, tags, data count section, passive segments
- WatParser parses rec groups with forward references and sub/sub_final subtyping
- WatParser supports named type references in functions
- Verifier handles GC opcodes and ref subtype assignments
- Replace any with proper types in opcode signatures
- Rename defineFuncType→defineFunctionType, defineTableSegment→defineElementSegment
- Added mut to playground exports so structDSL example works in browser
- Removed disableVerification from structDSL playground example
- Removed stale examples/ directory
- Cleaned up index exports
- Added docs for Disassembler, InstructionDecoder, parseWat rec/sub syntax, GC builder-object support
- Added tests for all new features
array_get_s(typeIndex:number):void// Signed packed field access
416
-
array_get_u(typeIndex:number):void// Unsigned packed field access
417
-
array_set(typeIndex:number):void
399
+
All `typeIndex` parameters accept either a numeric index or a builder object (`StructTypeBuilder`, `ArrayTypeBuilder`, etc.) — the `.index` is extracted automatically.
400
+
401
+
```typescript
402
+
// Struct operations — typeIndex accepts number or builder
Handles all section types including types (func, struct, array, rec groups), imports, functions with decoded instructions, tables, memories, globals, exports, start, elements, and data segments. Uses the name section when available for readable `$name` identifiers.
853
+
854
+
---
855
+
856
+
## InstructionDecoder
857
+
858
+
Low-level decoder that converts raw WebAssembly instruction bytes into structured objects.
0 commit comments