From d1f36accbf473b9211b65b8c508ac76cc9c1530f Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 17 Dec 2010 09:50:41 -0800 Subject: [PATCH] Remove toJSON usage - it was removed from V8 --- test/simple/test-fs-write.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/simple/test-fs-write.js b/test/simple/test-fs-write.js index 11f8ecb440..706c91cc26 100644 --- a/test/simple/test-fs-write.js +++ b/test/simple/test-fs-write.js @@ -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); }); }); @@ -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); }); });