<p dir="auto"><a href="https://github.com/GrosSacASac/worka/blob/master/example-deno/file_usage.js">example-deno/file_usage.js</a><br>
<a href="https://github.com/GrosSacASac/worka/blob/master/example-deno/sort_worka.js">example-deno/sort_worka.js</a></p>
<p dir="auto">The most widely available global is <code class="notranslate">self</code> as it is in both workers and in the main window in browsers.</p>
<p dir="auto">It would be very useful to define this global for cross-platform support.</p>
<p dir="auto">As a further point it could even be worth having it replace <code class="notranslate">window</code> since <code class="notranslate">typeof window</code> is typically done for an <code class="notranslate">isBrowser</code> detection, while the same cannot necessarily be said of <code class="notranslate">self</code>.</p>