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));