Skip to content

Commit 233ce3a

Browse files
committed
fix some comments
1 parent 4d6ff5b commit 233ce3a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/core-js/internals/collection-weak.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.exports = {
7575
};
7676

7777
redefineAll(C.prototype, {
78-
// { WeakMap, WeakSet }.prototype.delete(key)
78+
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
7979
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
8080
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
8181
'delete': function (key) {
@@ -85,7 +85,7 @@ module.exports = {
8585
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
8686
return data && $has(data, state.id) && delete data[state.id];
8787
},
88-
// { WeakMap, WeakSet }.prototype.has(key)
88+
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
8989
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
9090
// https://tc39.es/ecma262/#sec-weakset.prototype.has
9191
has: function has(key) {
@@ -98,7 +98,7 @@ module.exports = {
9898
});
9999

100100
redefineAll(C.prototype, IS_MAP ? {
101-
// WeakMap.prototype.get(key)
101+
// `WeakMap.prototype.get(key)` method
102102
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
103103
get: function get(key) {
104104
var state = getInternalState(this);
@@ -108,13 +108,13 @@ module.exports = {
108108
return data ? data[state.id] : undefined;
109109
}
110110
},
111-
// WeakMap.prototype.set(key, value)
111+
// `WeakMap.prototype.set(key, value)` method
112112
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
113113
set: function set(key, value) {
114114
return define(this, key, value);
115115
}
116116
} : {
117-
// WeakSet.prototype.add(value)
117+
// `WeakSet.prototype.add(value)` method
118118
// https://tc39.es/ecma262/#sec-weakset.prototype.add
119119
add: function add(value) {
120120
return define(this, value, true);

0 commit comments

Comments
 (0)