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:
412 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var getPolyfill = require('./polyfill');
|
---|
4 | var define = require('define-properties');
|
---|
5 |
|
---|
6 | var getIteratorPolyfill = require('../Iterator/polyfill');
|
---|
7 |
|
---|
8 | module.exports = function shimIteratorFrom() {
|
---|
9 | var $Iterator = getIteratorPolyfill();
|
---|
10 | var polyfill = getPolyfill();
|
---|
11 | define(
|
---|
12 | $Iterator,
|
---|
13 | { from: polyfill },
|
---|
14 | { from: function () { return $Iterator.from !== polyfill; } }
|
---|
15 | );
|
---|
16 |
|
---|
17 | return polyfill;
|
---|
18 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.