fred-wang / TeXZilla

LALR Javascript LaTeX-to-MathML converter compatible with Unicode
http://fred-wang.github.io/TeXZilla/
130 stars 21 forks source link

Cleanup the this.parseError code #39

Closed fred-wang closed 9 years ago

fred-wang commented 10 years ago

TeXZilla generates the following code

    if (true) {
         this.parseError = parseError;
     } else {
    }

in order to avoid error with Object.getPrototypeOf in Rhino (issue #38). This could be cleanup a bit further.