You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const common = require('../common');
|
|
|
|
if (!common.hasCrypto)
|
|
|
|
common.skip('missing crypto');
|
|
|
|
|
|
|
|
const assert = require('assert');
|
|
|
|
const net = require('net');
|
|
|
|
const tls = require('tls');
|
|
|
|
const tty = require('tty');
|
|
|
|
|
|
|
|
// Check that the bytesWritten getter doesn't crash if object isn't
|
|
|
|
// constructed.
|
|
|
|
assert.strictEqual(net.Socket.prototype.bytesWritten, undefined);
|
|
|
|
assert.strictEqual(tls.TLSSocket.super_.prototype.bytesWritten, undefined);
|
|
|
|
assert.strictEqual(tls.TLSSocket.prototype.bytesWritten, undefined);
|
|
|
|
assert.strictEqual(tty.ReadStream.super_.prototype.bytesWritten, undefined);
|
|
|
|
assert.strictEqual(tty.ReadStream.prototype.bytesWritten, undefined);
|
|
|
|
assert.strictEqual(tty.WriteStream.prototype.bytesWritten, undefined);
|