Repository navigation
v2.3.0 - Wasm: static class fields
Wasm: static class fields
The on-the-fly WebAssembly compiler now supports static class fields (bringing it toward parity with the interpreter, which gained them in 2.1.1).
- Each
staticfield becomes a typed, mutable module global (i64 forint, f64 fordouble, i32 forbool/other), seeded with its literal initializer. - A bare reference inside a
staticmethod reads and writes it (global.get/global.set), including compound assignment (c += 1), and values persist across calls. - Static-field globals coexist with the enum-entry caches (stable global-index layout).
Qualified Class.field from another class, inherited static fields, and non-literal initializers remain follow-ups (WASM_BACKEND_PLAN.md, GAP D).
Full changelog: https://github.com/ApolloVM/apollovm_dart/blob/v2.3.0/CHANGELOG.md