Opal-Estate-Pro/node_modules/es6-weak-map/valid-weak-map.js
2019-09-13 11:27:52 +07:00

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