diff --git a/compiler/src/generators/wasm.ts b/compiler/src/generators/wasm.ts index 0b0d3f8..700ddc1 100644 --- a/compiler/src/generators/wasm.ts +++ b/compiler/src/generators/wasm.ts @@ -357,18 +357,16 @@ function emitAssignment( const keyExpr = mapAssign[2]; // For now: map_set(map_handle, key_handle, value_handle) // This needs boxing; simplified version just marks as stub - return `;; Map assignment not yet compiled: ${target} := ${expr}\n` + - ` (i32.const 1)`; + return `;; Map assignment not yet compiled: ${target} := ${expr}`; } // Record field assignment: accounts[id].field := expr const recordAssign = target.match(/^(\w+)\[(.+)\]\.(\w+)$/); if (recordAssign && maps.has(recordAssign[1])) { - return `;; Record field assignment not yet compiled: ${target} := ${expr}\n` + - ` (i32.const 1)`; + return `;; Record field assignment not yet compiled: ${target} := ${expr}`; } - return `;; Unrecognized assignment target: ${target}\n (i32.const 1)`; + return `;; Unrecognized assignment target: ${target}`; } // =============================================================================