This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Used by both PooledWorker and WorkerPool | |
function deferred() { | |
let resolve, reject; | |
const promise = new Promise((res, rej) => { | |
resolve = res; | |
reject = rej; | |
}); | |
return { | |
promise, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is the windowsZones xml mapping to olsen time zones. It could be loaded in other ways | |
// but for now I just pasted it in here. | |
// http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml | |
var xml = '<supplementalData><version number="$Revision$"/><windowsZones><mapTimezones otherVersion="7e00100" typeVersion="2016d"><!-- (UTC-12:00) International Date Line West --><mapZone other="Dateline Standard Time" territory="001" type="Etc/GMT+12"/><mapZone other="Dateline Standard Time" territory="ZZ" type="Etc/GMT+12"/><!-- (UTC-11:00) Coordinated Universal Time-11 --><mapZone other="UTC-11" territory="001" type="Etc/GMT+11"/><mapZone other="UTC-11" territory="AS" type="Pacific/Pago_Pago"/><mapZone other="UTC-11" territory="NU" type="Pacific/Niue"/><mapZone other="UTC-11" territory="UM" type="Pacific/Midway"/><mapZone other="UTC-11" territory="ZZ" type="Etc/GMT+11"/><!-- (UTC-10:00) Hawaii --><mapZone other="Hawaiian Standard Time" territory="001" type="Pacific/Honolulu"/><mapZone other="H |