NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/es6-weak-map/valid-weak-map.js

9 lines
186 B
JavaScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
"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;
};