Skip to content

Commit 3ef5466

Browse files
committed
fix browser test
1 parent b8edc5a commit 3ef5466

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/browser/test-stream-sync-write.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
require('../common');
2-
var util = require('util');
2+
var inherits = require('inherits');
33
var stream = require('../../');
44
var WritableStream = stream.Writable;
55
module.exports = function(t) {
66
t.test('should bea ble to write sync', function(t) {
77
var InternalStream = function() {
88
WritableStream.call(this);
99
};
10-
util.inherits(InternalStream, WritableStream);
10+
inherits(InternalStream, WritableStream);
1111

1212
InternalStream.prototype._write = function(chunk, encoding, callback) {
1313
callback();
@@ -21,7 +21,7 @@ module.exports = function(t) {
2121
this._writable = writable;
2222
WritableStream.call(this);
2323
};
24-
util.inherits(ExternalStream, WritableStream);
24+
inherits(ExternalStream, WritableStream);
2525

2626
ExternalStream.prototype._write = function(chunk, encoding, callback) {
2727
this._writable.write(chunk, encoding, callback);

0 commit comments

Comments
 (0)