Closes https://github.com/denoland/deno/issues/27734 (cherry picked from commit 0d3d4f5466)
0d3d4f5466