We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe48b6 commit aa444b2Copy full SHA for aa444b2
1 file changed
lib/dtls.js
@@ -1,10 +1,5 @@
1
'use strict';
2
3
-const {
4
- ObjectCreate,
5
- ObjectSeal,
6
-} = primordials;
7
-
8
const {
9
emitExperimentalWarning,
10
} = require('internal/util');
@@ -17,20 +12,9 @@ const {
17
12
DTLSSession,
18
13
} = require('internal/dtls/dtls');
19
14
20
-function getEnumerableConstant(value) {
21
- return {
22
- __proto__: null,
23
- value,
24
- enumerable: true,
25
- configurable: false,
26
- writable: false,
27
- };
28
-}
29
30
-module.exports = ObjectSeal(ObjectCreate(null, {
31
32
- connect: getEnumerableConstant(connect),
33
- listen: getEnumerableConstant(listen),
34
- DTLSEndpoint: getEnumerableConstant(DTLSEndpoint),
35
- DTLSSession: getEnumerableConstant(DTLSSession),
36
-}));
15
+module.exports = {
16
+ connect,
+ listen,
+ DTLSEndpoint,
+ DTLSSession,
+};
0 commit comments