Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 1 commit comment
  • 1 contributor
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/repl.js
  2. +2 −2 lib/sibilant.js
View
4 lib/repl.js
@@ -4,7 +4,7 @@ var stream = process.openStdin(),
sibilant = require((__dirname + "/sibilant")),
context = undefined,
cmdBuffer = "",
- sys = require("util"),
+ utils = require("utils"),
displayPromptOnDrain = false;
var createContext = (function() {
var context = script.createContext();;
@@ -57,7 +57,7 @@ readline.on("line", (function(cmd) {
(readline.history)[0] = cmdBuffer;;
(function() {
if (typeof(result) !== 'undefined') {
- return flushed = stream.write(("result: " + sys.inspect(result) + "\n"));;
+ return flushed = stream.write(("result: " + utils.inspect(result) + "\n"));;
};
})();
(context)["_"] = result;;
View
4 lib/sibilant.js
@@ -1,11 +1,11 @@
var sibilant = exports,
- sys = require("util"),
+ utils = require("utils"),
import = require("sibilant/import"),
error = (function(str) {
// str:required
throw new Error (str);
}),
- inspect = sys.inspect;
+ inspect = utils.inspect;
import(require("sibilant/functional"));
var tokenize = sibilant.tokenize = (function(string) {

Showing you all comments on commits in this comparison.

@jbr
Owner

Thanks for the commit, but it's not working for me. What's the output of your node -v?

I'm on v0.3.1-pre and require('util') works and require('utils') gets me a Error: Cannot find module 'utils'
This is consistent with https://github.com/ry/node/blob/master/lib/util.js, although ry seems to have silenced the warnings on require('sys') in this commit: joyent/node@6ce007e

Moving target APIs sure keep us on our feet :)

Something went wrong with that request. Please try again.