Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Remove toJSON usage - it was removed from V8
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Dec 17, 2010
1 parent 7d425a0 commit d1f36ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/simple/test-fs-write.js
Expand Up @@ -21,8 +21,8 @@ fs.open(fn, 'w', 0644, function(err, fd) {
assert.equal(Buffer.byteLength(expected), written);
fs.closeSync(fd);
found = fs.readFileSync(fn, 'utf8');
console.log('expected: ' + expected.toJSON());
console.log('found: ' + found.toJSON());
console.log('expected: "%s"', expected);
console.log('found: "%s"', found);
fs.unlinkSync(fn);
});
});
Expand All @@ -41,8 +41,8 @@ fs.open(fn2, constants.O_CREAT | constants.O_WRONLY | constants.O_TRUNC, 0644,
assert.equal(Buffer.byteLength(expected), written);
fs.closeSync(fd);
found2 = fs.readFileSync(fn2, 'utf8');
console.log('expected: ' + expected.toJSON());
console.log('found: ' + found2.toJSON());
console.log('expected: "%s"', expected);
console.log('found: "%s"', found2);
fs.unlinkSync(fn2);
});
});
Expand Down

0 comments on commit d1f36ac

Please sign in to comment.