wishthis/node_modules/es6-weak-map/valid-weak-map.js
2022-01-21 09:28:41 +01:00

8 lines
186 B
JavaScript

"use strict";
var isWeakMap = require("./is-weak-map");
module.exports = function (value) {
if (!isWeakMap(value)) throw new TypeError(value + " is not a WeakMap");
return value;
};