astro-ghostcms/.pnpm-store/v3/files/c1/95ee5372dc6eb69e66401d88b1b...

16 lines
349 B
Plaintext

'use strict';
var $TypeError = require('es-errors/type');
// https://262.ecma-international.org/6.0/#sec-createiterresultobject
module.exports = function CreateIterResultObject(value, done) {
if (typeof done !== 'boolean') {
throw new $TypeError('Assertion failed: Type(done) is not Boolean');
}
return {
value: value,
done: done
};
};