shim.js 314 B

123456789101112131415
  1. 'use strict';
  2. var getPolyfill = require('./polyfill');
  3. var define = require('define-properties');
  4. module.exports = function shimValues() {
  5. var polyfill = getPolyfill();
  6. define(Object, { values: polyfill }, {
  7. values: function testValues() {
  8. return Object.values !== polyfill;
  9. }
  10. });
  11. return polyfill;
  12. };