]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/test/is-weak-map.js
ba8c04519ca204a5aac3ae3c4b420dc00f801c9c
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / test / is-weak-map.js
1 'use strict';
2
3 var WeakMapPoly = require('../polyfill');
4
5 module.exports = function (t, a) {
6 a(t(undefined), false, "Undefined");
7 a(t(null), false, "Null");
8 a(t(true), false, "Primitive");
9 a(t('raz'), false, "String");
10 a(t({}), false, "Object");
11 a(t([]), false, "Array");
12 if (typeof WeakMap !== 'undefined') {
13 a(t(new WeakMap()), true, "Native");
14 }
15 a(t(new WeakMapPoly()), true, "Polyfill");
16 };