Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
306 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | var getPolyfill = require('./polyfill');
|
---|
| 4 | var define = require('define-properties');
|
---|
| 5 |
|
---|
| 6 | module.exports = function shimObjectIs() {
|
---|
| 7 | var polyfill = getPolyfill();
|
---|
| 8 | define(Object, { is: polyfill }, {
|
---|
| 9 | is: function testObjectIs() {
|
---|
| 10 | return Object.is !== polyfill;
|
---|
| 11 | }
|
---|
| 12 | });
|
---|
| 13 | return polyfill;
|
---|
| 14 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.