Browse Source

Change |PEG.GrammarError| name

Change the value of the |name| property of |PEG.GrammarError| instances
from "PEG.GrammarError" to just "GrammarError". This better reflects the
fact that PEG.js can get required under different name than "PEG".
redux
David Majda 9 years ago
parent
commit
428fe294cf
  1. 2
      src/peg.js

2
src/peg.js

@ -31,7 +31,7 @@ var PEG = {
/* Thrown when the grammar contains an error. */
PEG.GrammarError = function(message) {
this.name = "PEG.GrammarError";
this.name = "GrammarError";
this.message = message;
};

Loading…
Cancel
Save