'use strict';varGetIntrinsic=require('../GetIntrinsic');var$TypeError=GetIntrinsic('%TypeError%');var$Date=GetIntrinsic('%Date%');var$isNaN=require('../helpers/isNaN');varType=require('./Type');// https://ecma-international.org/ecma-262/6.0/#sec-todatestringmodule.exports=functionToDateString(tv){if(Type(tv)!=='Number'){thrownew$TypeError('Assertion failed: `tv` must be a Number');}if($isNaN(tv)){return'Invalid Date';}return$Date(tv);};