source: imaps-frontend/node_modules/es-abstract/2022/CreateIterResultObject.js

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: 349 bytes
Line 
1'use strict';
2
3var $TypeError = require('es-errors/type');
4
5// https://262.ecma-international.org/6.0/#sec-createiterresultobject
6
7module.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.