Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
errors: backport ERR_INVALID_PROTOCOL to v8.x
This error code originally landed in a semver-major commit and is used by the ESM implementation. This backport includes the error message and the documentation for the error. I did attempt to write a test for this, but it did not seem possible to catch an exception during import, I was also unable to execute `node --experimental-modules` properly inside of a child_process. I'll dig more into getting a test together, but we should backport this fix in the mean time. Refs: #14423 Fixes: #15374 PR-URL: #15388 Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: James M Snell <[email protected]>
- Loading branch information