| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
LGTM, but is it possible to add a regression test?
Sorry, something went wrong.
|
@cjihrig I actually argue against testing cases like this - because if every code path needed to be negatively tested on its completion in JS, every single member expression, function argument would need to be tested for its null value. Also I'm tired! |
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: #40145 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #40145 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
Just came across this one when running require('./cjs.js') in a REPL in a project with "type": "module" where the ERR_REQUIRE_ESM was getting masked by an ERR_INVALID_ARG_TYPE error error, followed by the terrible realization it was probably my own fault!