Skip to content

Commit

Permalink
Update the sandbox to use console.
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Jul 27, 2010
1 parent 5f9dd7f commit 4875f76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/wheat.js
Expand Up @@ -25,7 +25,6 @@ require.paths.unshift(__dirname + "/wheat");
require('proto');
var Url = require('url'),
Git = require('git'),
Sys = require('sys'),
Renderers = require('renderers');

var routes = [];
Expand Down
6 changes: 3 additions & 3 deletions lib/wheat/data.js
Expand Up @@ -57,13 +57,13 @@ function sandbox(snippet) {
snippet.result = "";
snippet.output = "";
var overrides = {
sys: {
puts: function fakePuts() {
console: {
log: function fakePuts() {
arguments.forEach(function (data) {
snippet.output += data + "\n";
});
},
p: function fakeP(data) {
dir: function fakeP(data) {
arguments.forEach(function (data) {
snippet.output += sys.inspect(data) + "\n";
});
Expand Down

0 comments on commit 4875f76

Please sign in to comment.