Sha256: f7574f2a0d6ff7e05e621cb69d103e117b3b0a7c7c60fa9153fd7fd0971b6fb9

Contents?: true

Size: 427 Bytes

Versions: 243

Compression:

Stored size: 427 Bytes

Contents

'use strict';

var GetIntrinsic = require('get-intrinsic');

var $TypeError = GetIntrinsic('%TypeError%');

var Type = require('./Type');

// https://262.ecma-international.org/6.0/#sec-createiterresultobject

module.exports = function CreateIterResultObject(value, done) {
	if (Type(done) !== 'Boolean') {
		throw new $TypeError('Assertion failed: Type(done) is not Boolean');
	}
	return {
		value: value,
		done: done
	};
};

Version data entries

243 entries across 27 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.32 node_modules/es-abstract/2023/CreateIterResultObject.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2019/CreateIterResultObject.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2018/CreateIterResultObject.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2016/CreateIterResultObject.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2020/CreateIterResultObject.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2015/CreateIterResultObject.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2022/CreateIterResultObject.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2017/CreateIterResultObject.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2021/CreateIterResultObject.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2023/CreateIterResultObject.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2015/CreateIterResultObject.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2021/CreateIterResultObject.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2018/CreateIterResultObject.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2022/CreateIterResultObject.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2019/CreateIterResultObject.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2016/CreateIterResultObject.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2020/CreateIterResultObject.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2017/CreateIterResultObject.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2023/CreateIterResultObject.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2015/CreateIterResultObject.js