]> gerrit.simantics Code Review - simantics/district.git/blob - is-implemented.js
bb0d64536ebbae18e674079fe104ea26c44a6522
[simantics/district.git] / is-implemented.js
1 'use strict';
2
3 var global   = require('es5-ext/global')
4   , polyfill = require('../polyfill');
5
6 module.exports = function (t, a) {
7         var cache;
8         a(typeof t(), 'boolean');
9         cache = global.Symbol;
10         global.Symbol = polyfill;
11         a(t(), true);
12         if (cache === undefined) delete global.Symbol;
13         else global.Symbol = cache;
14 };