mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-11 18:32:50 +00:00
15 lines
394 B
JavaScript
15 lines
394 B
JavaScript
'use strict';
|
|
|
|
module.exports = function () {
|
|
var map;
|
|
if (typeof WeakMap !== 'function') return false;
|
|
map = new WeakMap();
|
|
if (typeof map.set !== 'function') return false;
|
|
if (map.set({}, 1) !== map) return false;
|
|
if (typeof map.clear !== 'function') return false;
|
|
if (typeof map.delete !== 'function') return false;
|
|
if (typeof map.has !== 'function') return false;
|
|
|
|
return true;
|
|
};
|