mirror of https://github.com/lukechilds/node.git
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.
17 lines
410 B
17 lines
410 B
8 years ago
|
'use strict';
|
||
|
|
||
|
/*
|
||
|
* Issue: https://github.com/nodejs/node/issues/3655
|
||
|
* Test checks if we get exception instead of runtime error
|
||
|
*/
|
||
|
|
||
|
require('../common');
|
||
|
const assert = require('assert');
|
||
|
|
||
|
const TlsSocket = require('tls').TLSSocket;
|
||
|
const EventEmitter = require('events').EventEmitter;
|
||
|
assert.throws(
|
||
|
() => { new TlsSocket(new EventEmitter()); },
|
||
|
/^TypeError: this\.stream\.pause is not a function/
|
||
|
);
|