Skip to content

Commit 29ccbb6

Browse files
committed
revise toUint16() Uint16
1 parent 242f74f commit 29ccbb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/namedgroup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class NamedGroupList extends Constrained {
165165
* @param {...NamedGroup} namedgroup - The NamedGroup instances to include in the list.
166166
*/
167167
constructor(...namedgroup) {
168-
const namedgroupUint16 = namedgroup.map(e => e.toUint16());
168+
const namedgroupUint16 = namedgroup.map(e => e.Uint16);
169169
super(2, 65535, ...namedgroupUint16);
170170
this.namedGroups = namedgroup;
171171
}
@@ -235,7 +235,7 @@ export class KeyShareEntry extends Struct {
235235
* @param {KeyExchange} key_exchange - The KeyExchange associated with the key share.
236236
*/
237237
constructor(group, key_exchange) {
238-
super(group.toUint16(), key_exchange);
238+
super(group.Uint16, key_exchange);
239239
this.group = group;
240240
this.key_exchange = key_exchange.key_exchange;
241241
}

0 commit comments

Comments
 (0)