@@ -971,6 +971,7 @@ Socket.prototype.getSendBufferSize = function() {
971
971
972
972
// Deprecated private APIs.
973
973
ObjectDefineProperty ( Socket . prototype , '_handle' , {
974
+ __proto__ : null ,
974
975
get : deprecate ( function ( ) {
975
976
return this [ kStateSymbol ] . handle ;
976
977
} , 'Socket.prototype._handle is deprecated' , 'DEP0112' ) ,
@@ -981,6 +982,7 @@ ObjectDefineProperty(Socket.prototype, '_handle', {
981
982
982
983
983
984
ObjectDefineProperty ( Socket . prototype , '_receiving' , {
985
+ __proto__ : null ,
984
986
get : deprecate ( function ( ) {
985
987
return this [ kStateSymbol ] . receiving ;
986
988
} , 'Socket.prototype._receiving is deprecated' , 'DEP0112' ) ,
@@ -991,6 +993,7 @@ ObjectDefineProperty(Socket.prototype, '_receiving', {
991
993
992
994
993
995
ObjectDefineProperty ( Socket . prototype , '_bindState' , {
996
+ __proto__ : null ,
994
997
get : deprecate ( function ( ) {
995
998
return this [ kStateSymbol ] . bindState ;
996
999
} , 'Socket.prototype._bindState is deprecated' , 'DEP0112' ) ,
@@ -1001,6 +1004,7 @@ ObjectDefineProperty(Socket.prototype, '_bindState', {
1001
1004
1002
1005
1003
1006
ObjectDefineProperty ( Socket . prototype , '_queue' , {
1007
+ __proto__ : null ,
1004
1008
get : deprecate ( function ( ) {
1005
1009
return this [ kStateSymbol ] . queue ;
1006
1010
} , 'Socket.prototype._queue is deprecated' , 'DEP0112' ) ,
@@ -1011,6 +1015,7 @@ ObjectDefineProperty(Socket.prototype, '_queue', {
1011
1015
1012
1016
1013
1017
ObjectDefineProperty ( Socket . prototype , '_reuseAddr' , {
1018
+ __proto__ : null ,
1014
1019
get : deprecate ( function ( ) {
1015
1020
return this [ kStateSymbol ] . reuseAddr ;
1016
1021
} , 'Socket.prototype._reuseAddr is deprecated' , 'DEP0112' ) ,
@@ -1033,6 +1038,7 @@ Socket.prototype._stopReceiving = deprecate(function() {
1033
1038
// Legacy alias on the C++ wrapper object. This is not public API, so we may
1034
1039
// want to runtime-deprecate it at some point. There's no hurry, though.
1035
1040
ObjectDefineProperty ( UDP . prototype , 'owner' , {
1041
+ __proto__ : null ,
1036
1042
get ( ) { return this [ owner_symbol ] ; } ,
1037
1043
set ( v ) { return this [ owner_symbol ] = v ; }
1038
1044
} ) ;
0 commit comments