]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/is-implemented.js
455ff812522e346c44f2002af98a4f1324f302d5
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / is-implemented.js
1 'use strict';
2
3 module.exports = function () {
4 var map;
5 if (typeof WeakMap !== 'function') return false;
6 map = new WeakMap();
7 if (typeof map.set !== 'function') return false;
8 if (map.set({}, 1) !== map) return false;
9 if (typeof map.clear !== 'function') return false;
10 if (typeof map.delete !== 'function') return false;
11 if (typeof map.has !== 'function') return false;
12
13 return true;
14 };