Permalink
Browse files

again work with nodejs 0.6.11

  • Loading branch information...
1 parent fc1add4 commit 020865dc82a39fb6c3e7720e259248f6e9c64468 @humasect humasect committed Feb 22, 2012
Showing with 7 additions and 8 deletions.
  1. +3 −4 lib/sibilant.js
  2. +4 −4 src/sibilant.sibilant
View
7 lib/sibilant.js
@@ -1,12 +1,12 @@
var sibilant = exports,
- sys = require("sys"),
+ util = require("util"),
path = require("path"),
fs = require("fs"),
error = (function(str) {
// str:required
throw new Error ((new Error(str)));
}),
- inspect = sys.inspect;
+ inspect = util.inspect;
var bulkMap = (function(arr, fn) {
// arr:required fn:required
var index = 0,
@@ -671,7 +671,6 @@ macros.include = (function(file) {
return sibilant.include(eval(translate(file)));
});
-//require.paths.unshift((__dirname + "/../include"));
-
+//(require.paths.unshift (concat **dirname "/../include"))
sibilant.include("./include/macros");
View
8 src/sibilant.sibilant
@@ -1,9 +1,9 @@
(defvar sibilant exports
- sys (require 'sys)
+ util (require 'util)
path (require 'path)
fs (require 'fs)
error (lambda (str) (throw (new (Error str))))
- inspect sys.inspect)
+ inspect util.inspect)
(include "../include/functional")
@@ -75,6 +75,6 @@
(defun macros.include (file)
(sibilant.include (eval (translate file))))
-(require.paths.unshift (concat **dirname "/../include"))
+;;(require.paths.unshift (concat **dirname "/../include"))
-(sibilant.include 'macros)
+(sibilant.include "./include/macros")

0 comments on commit 020865d

Please sign in to comment.