aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Cholewiński <harry666t@gmail.com>2013-01-16 00:46:48 +0100
committerKamil Cholewiński <harry666t@gmail.com>2013-01-16 00:46:48 +0100
commit2f7f780f23d6cd361b90f4f7b389333a14c082cc (patch)
tree9649c8608cf6f1657b7b201041df75340aeeb447
parentc1c44f4860ee44db719d4de7e725f7ebba7b2187 (diff)
downloadfunkylisp-2f7f780f23d6cd361b90f4f7b389333a14c082cc.zip
funkylisp-2f7f780f23d6cd361b90f4f7b389333a14c082cc.tar.gz
funkylisp-2f7f780f23d6cd361b90f4f7b389333a14c082cc.tar.bz2
set CommonJS exports
-rw-r--r--fl.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/fl.js b/fl.js
index 5d00d50..8be7c07 100644
--- a/fl.js
+++ b/fl.js
@@ -193,3 +193,7 @@ fl.print(fl.eval(fl.global_env, fl.read_tokens(fl.tokenize('\
fl.rep = function(s) {
return fl.print(fl.eval(fl.global_env, fl.read_tokens(fl.tokenize(s))));
};
+
+if (exports !== undefined)
+ for (var i in fl)
+ exports[i] = fl[i];