From 902404cb10d6a56bc6836ed10a6ab0d21781f09b Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sat, 14 Mar 2026 14:00:39 +0000 Subject: [PATCH] Fix string interpolation in error messages --- asm.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/asm.js b/asm.js index 6d69eb2..0240a37 100644 --- a/asm.js +++ b/asm.js @@ -680,7 +680,8 @@ export class Assembler { ?? this.lookup_global(action.symbol) ?? this.lookup_def(action.symbol); if (value == null) { - console.error(`ERROR: Unable to resolve symbol {action.symbol}`); + console.error( + `ERROR: Unable to resolve symbol ${action.symbol}`); value = 0; } func.body.push(value); @@ -710,7 +711,7 @@ export class Assembler { action_at(action) { const mem = Object.keys(this.mems).indexOf(action.at.mem); if (mem == -1) { - console.error(`ERROR: No memory named {action.at.mem}`); + console.error(`ERROR: No memory named ${action.at.mem}`); return; } this.pos.mem = mem;