Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Dec 22, 2022
1 parent 1326903 commit 0d9478e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core-js-pure/override/internals/a-map.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var tryToString = require('../internals/try-to-string');

// Perform ? RequireInternalSlot(M, [[MapData]])
module.exports = function (it) {
if (typeof it == 'object' && 'size' in it && 'has' in it && 'get' in it && 'set' in it && 'delete' in it && 'entries' in it) return it;
throw TypeError(tryToString(it) + ' is not a map');
Expand Down
1 change: 1 addition & 0 deletions packages/core-js-pure/override/internals/a-set.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var tryToString = require('../internals/try-to-string');

// Perform ? RequireInternalSlot(M, [[SetData]])
module.exports = function (it) {
if (typeof it == 'object' && 'size' in it && 'has' in it && 'add' in it && 'delete' in it && 'keys' in it) return it;
throw TypeError(tryToString(it) + ' is not a set');
Expand Down
1 change: 1 addition & 0 deletions packages/core-js-pure/override/internals/a-weak-map.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var tryToString = require('../internals/try-to-string');

// Perform ? RequireInternalSlot(M, [[WeakMapData]])
module.exports = function (it) {
if (typeof it == 'object' && 'has' in it && 'get' in it && 'set' in it && 'delete') return it;
throw TypeError(tryToString(it) + ' is not a weakmap');
Expand Down
1 change: 1 addition & 0 deletions packages/core-js-pure/override/internals/a-weak-set.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var tryToString = require('../internals/try-to-string');

// Perform ? RequireInternalSlot(M, [[WeakSetData]])
module.exports = function (it) {
if (typeof it == 'object' && 'has' in it && 'add' in it && 'delete' in it) return it;
throw TypeError(tryToString(it) + ' is not a weakset');
Expand Down
1 change: 1 addition & 0 deletions packages/core-js/internals/a-map.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var has = require('../internals/map-helpers').has;

// Perform ? RequireInternalSlot(M, [[MapData]])
module.exports = function (it) {
has(it);
return it;
Expand Down
1 change: 1 addition & 0 deletions packages/core-js/internals/a-set.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var has = require('../internals/set-helpers').has;

// Perform ? RequireInternalSlot(M, [[SetData]])
module.exports = function (it) {
has(it);
return it;
Expand Down
1 change: 1 addition & 0 deletions packages/core-js/internals/a-weak-map.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var has = require('../internals/weak-map-helpers').has;

// Perform ? RequireInternalSlot(M, [[WeakMapData]])
module.exports = function (it) {
has(it);
return it;
Expand Down
1 change: 1 addition & 0 deletions packages/core-js/internals/a-weak-set.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var has = require('../internals/weak-set-helpers').has;

// Perform ? RequireInternalSlot(M, [[WeakSetData]])
module.exports = function (it) {
has(it);
return it;
Expand Down

0 comments on commit 0d9478e

Please sign in to comment.