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 12 years ago
parent 12398ada9a
commit 428fe294cf

@ -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