debian-mirror-gitlab/core-js/internals/native-weak-map.js

7 lines
231 B
JavaScript
Raw Normal View History

2019-09-25 13:30:05 +05:30
var global = require('../internals/global');
2019-12-04 20:38:33 +05:30
var inspectSource = require('../internals/inspect-source');
2019-09-25 13:30:05 +05:30
var WeakMap = global.WeakMap;
2019-12-04 20:38:33 +05:30
module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));