From c55babadd6487e07e662b449055f4ef38afc1999 Mon Sep 17 00:00:00 2001 From: jberg Date: Sat, 20 Jul 2019 16:26:17 -0700 Subject: [PATCH] lookup command opcodes in debugger (#817) --- experiments/modern/src/debugger/Command.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/experiments/modern/src/debugger/Command.js b/experiments/modern/src/debugger/Command.js index 48722359..ee46b25b 100644 --- a/experiments/modern/src/debugger/Command.js +++ b/experiments/modern/src/debugger/Command.js @@ -1,5 +1,6 @@ import React from "react"; import Variable from "./Variable"; +const { COMMANDS } = require("../maki-interpreter/constants"); export default function Command({ command, variables }) { const { arg } = command; let foo = null; @@ -17,7 +18,7 @@ export default function Command({ command, variables }) { } return ( <> - ({command.opcode}) {command.command.name.toUpperCase()} {foo} + ({command.opcode}) {COMMANDS[command.opcode].name.toUpperCase()} {foo} ); }