File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -16,18 +16,6 @@ const UDP = internalBinding('udp_wrap').UDP;
1616
1717{
1818 // Should throw instead of raise assertions
19- assert . throws ( ( ) => {
20- TTY . prototype . bytesRead ;
21- } , TypeError ) ;
22-
23- assert . throws ( ( ) => {
24- TTY . prototype . fd ;
25- } , TypeError ) ;
26-
27- assert . throws ( ( ) => {
28- TTY . prototype . _externalStream ;
29- } , TypeError ) ;
30-
3119 assert . throws ( ( ) => {
3220 UDP . prototype . fd ;
3321 } , TypeError ) ;
@@ -36,6 +24,11 @@ const UDP = internalBinding('udp_wrap').UDP;
3624 const properties = [ 'bytesRead' , 'fd' , '_externalStream' ] ;
3725
3826 properties . forEach ( ( property ) => {
27+ // Should throw instead of raise assertions
28+ assert . throws ( ( ) => {
29+ TTY . prototype [ property ] ;
30+ } , TypeError , `Missing expected TypeError for TTY.prototype.${ property } ` ) ;
31+
3932 // Should not throw for Object.getOwnPropertyDescriptor
4033 assert . strictEqual (
4134 typeof Object . getOwnPropertyDescriptor ( StreamWrapProto , property ) ,
You can’t perform that action at this time.
0 commit comments