mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
lookup command opcodes in debugger (#817)
This commit is contained in:
parent
c8ec4e4e54
commit
3cfd9278c8
1 changed files with 2 additions and 1 deletions
|
|
@ -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}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue