denoland / nodetodenochallenge

Take any Node project, run it with Deno, share on Twitter, earn prizes #NodeToDenoChallenge
https://deno.com/blog/node-to-deno-challenge
1 stars 0 forks source link

minus-h #13

Open hildjj opened 10 months ago

hildjj commented 10 months ago

From: https://github.com/hildjj/minus-h

import * as mh from 'npm:minus-h';
mh.parseArgsWithHelp()
Uncaught TypeError: Cannot read properties of undefined (reading 'execArgv')
    at getMainArgs (ext:deno_node/internal/util/parse_args/parse_args.js:53:28)
    at parseArgs (ext:deno_node/internal/util/parse_args/parse_args.js:162:48)
    at Module.parseArgsWithHelp (file:///Users/hildjj/Library/Caches/deno/npm/registry.npmjs.org/minus-h/1.2.1/lib/index.js:132:19)
    at <anonymous>:1:25

Looks like there might have been an issue with #21342 not getting process correctly. The tests might have worked if at some point process gets injected into globalThis, I suppose.