debian-mirror-gitlab/core-js/internals/native-weak-map.js
2019-09-25 13:30:05 +05:30

6 lines
258 B
JavaScript

var global = require('../internals/global');
var nativeFunctionToString = require('../internals/function-to-string');
var WeakMap = global.WeakMap;
module.exports = typeof WeakMap === 'function' && /native code/.test(nativeFunctionToString.call(WeakMap));