lepu-test-platform-web/node_modules/es6-weak-map/valid-weak-map.js

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