项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

1234567891011121314
  1. 'use strict';
  2. var global = require('es5-ext/global')
  3. , polyfill = require('../polyfill');
  4. module.exports = function (t, a) {
  5. var cache;
  6. a(typeof t(), 'boolean');
  7. cache = global.Map;
  8. global.Map = polyfill;
  9. a(t(), true);
  10. if (cache === undefined) delete global.Map;
  11. else global.Map = cache;
  12. };