mathjax / MathJax-src

MathJax source code for version 3 and beyond

Home Page:https://www.mathjax.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

catching undeclared methods in a CommandMap

pkra opened this issue · comments

While writing a third party extensions, I did something like

new CommandMap(
    'my-macros',
    {
        bigsqcap: ['Macro', '\\mmlToken{mo}{\u2a05}'],
... 
   },
   Mymethods
);

But I had forgotten something like Mymethods.Macro = BaseMethods.Macro;

Typescript compiled without errors and running the extension just gave me an "unknown macro" error, without any hint as to what went wrong.

I'm wondering if there could more additional feedback in such a situation.