@@ -971,6 +971,7 @@ Socket.prototype.getSendBufferSize = function() {
971971
972972// Deprecated private APIs.
973973ObjectDefineProperty ( Socket . prototype , '_handle' , {
974+ __proto__ : null ,
974975 get : deprecate ( function ( ) {
975976 return this [ kStateSymbol ] . handle ;
976977 } , 'Socket.prototype._handle is deprecated' , 'DEP0112' ) ,
@@ -981,6 +982,7 @@ ObjectDefineProperty(Socket.prototype, '_handle', {
981982
982983
983984ObjectDefineProperty ( Socket . prototype , '_receiving' , {
985+ __proto__ : null ,
984986 get : deprecate ( function ( ) {
985987 return this [ kStateSymbol ] . receiving ;
986988 } , 'Socket.prototype._receiving is deprecated' , 'DEP0112' ) ,
@@ -991,6 +993,7 @@ ObjectDefineProperty(Socket.prototype, '_receiving', {
991993
992994
993995ObjectDefineProperty ( Socket . prototype , '_bindState' , {
996+ __proto__ : null ,
994997 get : deprecate ( function ( ) {
995998 return this [ kStateSymbol ] . bindState ;
996999 } , 'Socket.prototype._bindState is deprecated' , 'DEP0112' ) ,
@@ -1001,6 +1004,7 @@ ObjectDefineProperty(Socket.prototype, '_bindState', {
10011004
10021005
10031006ObjectDefineProperty ( Socket . prototype , '_queue' , {
1007+ __proto__ : null ,
10041008 get : deprecate ( function ( ) {
10051009 return this [ kStateSymbol ] . queue ;
10061010 } , 'Socket.prototype._queue is deprecated' , 'DEP0112' ) ,
@@ -1011,6 +1015,7 @@ ObjectDefineProperty(Socket.prototype, '_queue', {
10111015
10121016
10131017ObjectDefineProperty ( Socket . prototype , '_reuseAddr' , {
1018+ __proto__ : null ,
10141019 get : deprecate ( function ( ) {
10151020 return this [ kStateSymbol ] . reuseAddr ;
10161021 } , 'Socket.prototype._reuseAddr is deprecated' , 'DEP0112' ) ,
@@ -1033,6 +1038,7 @@ Socket.prototype._stopReceiving = deprecate(function() {
10331038// Legacy alias on the C++ wrapper object. This is not public API, so we may
10341039// want to runtime-deprecate it at some point. There's no hurry, though.
10351040ObjectDefineProperty ( UDP . prototype , 'owner' , {
1041+ __proto__ : null ,
10361042 get ( ) { return this [ owner_symbol ] ; } ,
10371043 set ( v ) { return this [ owner_symbol ] = v ; }
10381044} ) ;
0 commit comments