source: frontend/node_modules/core-js-pure/internals/a-weak-map.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 356 bytes
Line 
1'use strict';
2var tryToString = require('../internals/try-to-string');
3
4var $TypeError = TypeError;
5
6// Perform ? RequireInternalSlot(M, [[WeakMapData]])
7module.exports = function (it) {
8 if (typeof it == 'object' && 'has' in it && 'get' in it && 'set' in it && 'delete' in it) return it;
9 throw new $TypeError(tryToString(it) + ' is not a weakmap');
10};
Note: See TracBrowser for help on using the repository browser.