From 1a32ae7bd07306a78f28908ce3782344ff8eac5f Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Mon, 8 Jun 2015 11:59:10 -0700 Subject: [PATCH] Make PEG global explicit in helpers --- spec/helpers.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/helpers.js b/spec/helpers.js index e7ab8f7..1b237fc 100644 --- a/spec/helpers.js +++ b/spec/helpers.js @@ -1,3 +1,5 @@ -if (typeof module !== "undefined") { - PEG = require("../lib/peg.js"); -} +(function(root) { + if (typeof module !== 'undefined') { + root.PEG = require("../lib/peg.js"); + } +}(this));