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