]> git.r.bdr.sh - rbdr/dotfiles/blob
ba8c04519ca204a5aac3ae3c4b420dc00f801c9c
[rbdr/dotfiles] /
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 };