"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;
};