From 340f1e3258aecab5013602a4479fed4c7c62cb1b Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Sun, 24 Feb 2013 22:25:00 +0100 Subject: [PATCH] Made the acorn parser able to run outside of the Cappuccino world --- Objective-J/acorn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objective-J/acorn.js b/Objective-J/acorn.js index 92be0bfb6..7ba3b6bf6 100644 --- a/Objective-J/acorn.js +++ b/Objective-J/acorn.js @@ -26,7 +26,7 @@ // // https://github.com/mrcarlberg/acorn.git -if (!exports.acorn) { +if (typeof exports != "undefined" && !exports.acorn) { exports.acorn = {}; exports.acorn.walk = {}; }