valid-weak-map.js 170 B

12345678
  1. 'use strict';
  2. var isWeakMap = require('./is-weak-map');
  3. module.exports = function (x) {
  4. if (!isWeakMap(x)) throw new TypeError(x + " is not a WeakMap");
  5. return x;
  6. };