main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
355 bytes
|
Rev | Line | |
---|
[d565449] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | var define = require('define-properties');
|
---|
| 4 | var globalThis = require('globalthis')();
|
---|
| 5 |
|
---|
| 6 | var getPolyfill = require('./polyfill');
|
---|
| 7 |
|
---|
| 8 | module.exports = function shimIterator() {
|
---|
| 9 | var polyfill = getPolyfill();
|
---|
| 10 |
|
---|
| 11 | define(
|
---|
| 12 | globalThis,
|
---|
| 13 | { Iterator: polyfill },
|
---|
| 14 | { Iterator: function () { return Iterator !== polyfill; } }
|
---|
| 15 | );
|
---|
| 16 |
|
---|
| 17 | return polyfill;
|
---|
| 18 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.