Tim van der Lippe | fdbd42e | 2020-04-07 15:14:36 +0100 | [diff] [blame] | 1 | 'use strict'; |
2 | |||||
3 | var getPolyfill = require('./polyfill'); | ||||
4 | var define = require('define-properties'); | ||||
5 | |||||
6 | module.exports = function shimValues() { | ||||
7 | var polyfill = getPolyfill(); | ||||
8 | define(Object, { values: polyfill }, { | ||||
9 | values: function testValues() { | ||||
10 | return Object.values !== polyfill; | ||||
11 | } | ||||
12 | }); | ||||
13 | return polyfill; | ||||
14 | }; |