Skip to content

Commit d1f36ac

Browse files
committed
Remove toJSON usage - it was removed from V8
1 parent 7d425a0 commit d1f36ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/simple/test-fs-write.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ fs.open(fn, 'w', 0644, function(err, fd) {
2121
assert.equal(Buffer.byteLength(expected), written);
2222
fs.closeSync(fd);
2323
found = fs.readFileSync(fn, 'utf8');
24-
console.log('expected: ' + expected.toJSON());
25-
console.log('found: ' + found.toJSON());
24+
console.log('expected: "%s"', expected);
25+
console.log('found: "%s"', found);
2626
fs.unlinkSync(fn);
2727
});
2828
});
@@ -41,8 +41,8 @@ fs.open(fn2, constants.O_CREAT | constants.O_WRONLY | constants.O_TRUNC, 0644,
4141
assert.equal(Buffer.byteLength(expected), written);
4242
fs.closeSync(fd);
4343
found2 = fs.readFileSync(fn2, 'utf8');
44-
console.log('expected: ' + expected.toJSON());
45-
console.log('found: ' + found2.toJSON());
44+
console.log('expected: "%s"', expected);
45+
console.log('found: "%s"', found2);
4646
fs.unlinkSync(fn2);
4747
});
4848
});

0 commit comments

Comments
 (0)