From dcdfc94cb39dfe2c39925a0145ffa45e2d061c30 Mon Sep 17 00:00:00 2001 From: Kumar Priyansh Date: Sat, 19 Jan 2019 12:37:14 +0530 Subject: Initial Upload via GIT --- cordova/node_modules/pegjs/lib/grammar-error.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cordova/node_modules/pegjs/lib/grammar-error.js (limited to 'cordova/node_modules/pegjs/lib/grammar-error.js') diff --git a/cordova/node_modules/pegjs/lib/grammar-error.js b/cordova/node_modules/pegjs/lib/grammar-error.js new file mode 100644 index 0000000..758b8e9 --- /dev/null +++ b/cordova/node_modules/pegjs/lib/grammar-error.js @@ -0,0 +1,18 @@ +"use strict"; + +var classes = require("./utils/classes"); + +/* Thrown when the grammar contains an error. */ +function GrammarError(message, location) { + this.name = "GrammarError"; + this.message = message; + this.location = location; + + if (typeof Error.captureStackTrace === "function") { + Error.captureStackTrace(this, GrammarError); + } +} + +classes.subclass(GrammarError, Error); + +module.exports = GrammarError; -- cgit v1.2.3