As per review comment in original PR: https://github.com/denoland/deno/pull/18244#issuecomment-1473769606