Assemble kernel on the client #1

Merged
cdo merged 72 commits from client-side-assembler into main 2026-03-18 15:21:33 +00:00
Showing only changes of commit 6784cd02b4 - Show all commits

4
asm.js
View File

@@ -1327,7 +1327,9 @@ export class Assembler {
];
const sections = template.map(([ code, generator ]) => {
const body = generator();
return body == null ? [] : [ code, body.length, body ];
if (body == null)
return [];
return [ code, this.uleb128(body.length), body ];
});
return new Uint8Array([ HEADER, sections ].flat(Infinity));