main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
390 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var $TypeError = require('es-errors/type');
|
---|
4 |
|
---|
5 | var Get = require('./Get');
|
---|
6 | var Type = require('./Type');
|
---|
7 |
|
---|
8 | // https://262.ecma-international.org/6.0/#sec-iteratorvalue
|
---|
9 |
|
---|
10 | module.exports = function IteratorValue(iterResult) {
|
---|
11 | if (Type(iterResult) !== 'Object') {
|
---|
12 | throw new $TypeError('Assertion failed: Type(iterResult) is not Object');
|
---|
13 | }
|
---|
14 | return Get(iterResult, 'value');
|
---|
15 | };
|
---|
16 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.