fix crash when used in a web worker
fix crash when used in a web worker

alexvictoor/HdrHistogramJS,HdrHistogram/HdrHistogramJS,alexvictoor/HdrHistogramJS,HdrHistogram/HdrHistogramJS,HdrHistogram/HdrHistogramJS