|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
349 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var $TypeError = require('es-errors/type');
|
|---|
| 4 |
|
|---|
| 5 | // https://262.ecma-international.org/6.0/#sec-createiterresultobject
|
|---|
| 6 |
|
|---|
| 7 | module.exports = function CreateIterResultObject(value, done) {
|
|---|
| 8 | if (typeof done !== 'boolean') {
|
|---|
| 9 | throw new $TypeError('Assertion failed: Type(done) is not Boolean');
|
|---|
| 10 | }
|
|---|
| 11 | return {
|
|---|
| 12 | value: value,
|
|---|
| 13 | done: done
|
|---|
| 14 | };
|
|---|
| 15 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.