From 549d052710e7c35ed27a91b9de41a49b56a2afe1 Mon Sep 17 00:00:00 2001 From: David Majda Date: Sat, 5 Jan 2013 21:16:36 +0100 Subject: [PATCH] Make |GrammarError| require work also in the browser version Fixes a bug from ac179cda7bae7bef539d235e3f66e5eed92b50ef (a fix for GH-135). --- lib/compiler/passes/report-left-recursion.js | 2 +- lib/compiler/passes/report-missing-rules.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compiler/passes/report-left-recursion.js b/lib/compiler/passes/report-left-recursion.js index 5c8592d..f868b6d 100644 --- a/lib/compiler/passes/report-left-recursion.js +++ b/lib/compiler/passes/report-left-recursion.js @@ -1,5 +1,5 @@ var utils = require("../../utils"), - GrammarError = require("../../grammar-error.js"); + GrammarError = require("../../grammar-error"); /* Checks that no left recursion is present. */ module.exports = function(ast) { diff --git a/lib/compiler/passes/report-missing-rules.js b/lib/compiler/passes/report-missing-rules.js index c1193bc..cf3afc9 100644 --- a/lib/compiler/passes/report-missing-rules.js +++ b/lib/compiler/passes/report-missing-rules.js @@ -1,5 +1,5 @@ var utils = require("../../utils"), - GrammarError = require("../../grammar-error.js"); + GrammarError = require("../../grammar-error"); /* Checks that all referenced rules exist. */ module.exports = function(ast) {