FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

errors: fix ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK by ChALkeR · Pull Request #21492 · nodejs/node · GitHub

/ node Public

errors: fix ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK - #21492

Closed
ChALkeR wants to merge 1 commit into
nodejs:masterfrom
ChALkeR:doc-errcodes-restore-insthook
Closed

errors: fix ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK#21492
ChALkeR wants to merge 1 commit into
nodejs:masterfrom
ChALkeR:doc-errcodes-restore-insthook

Conversation

ChALkeR commented Jun 23, 2018
edited
Loading

Copy link
Copy Markdown
Member

This restores a broken and erroneously removed error, which was accidentially renamed to ERR_MISSING_DYNAMIC_INTSTANTIATE_HOOK (notice the INTST vs INST) in 921fb84 (PR #16874) and then had documentation and implementation removed under the old name in 6e1c25c (PR #18857), as it appeared unused.

This error code never worked or was documented under the mistyped name
ERR_MISSING_DYNAMIC_INTSTANTIATE_HOOK, so renaming it back to
ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK is a semver-patch fix.

Refs: #21440, #21470, #16874, #18857.


This is a part of the fixes hinted by #21470, which includes some tests for error codes usage and documentation and enforces a stricter format.

This is mostly a revert, and specific tests for esm loader actually emitting that error are not included here.
Generic tests for error codes are included in a separate PR: #21470.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

This restores a broken and erroneously removed error, which was
accidentially renamed to ERR_MISSING_DYNAMIC_INTSTANTIATE_HOOK (notice
the "INTST" vs "INST") in 921fb84
(PR nodejs#16874) and then had documentation and implementation removed under
the old name in 6e1c25c (PR nodejs#18857),
as it appeared unused.

This error code never worked or was documented under the mistyped name
ERR_MISSING_DYNAMIC_INTSTANTIATE_HOOK, so renaming it back to
ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK is a semver-patch fix.

Refs: nodejs#21440
Refs: nodejs#21470
Refs: nodejs#16874
Refs: nodejs#18857

Copy link
Copy Markdown
Collaborator

nodejs-github-bot added the errors Issues and PRs related to JavaScript errors originated in Node.js core. label Jun 23, 2018

ChALkeR commented Jun 23, 2018

Copy link
Copy Markdown
Member Author

Eh, I accidentially confused Travis here. Re-run doesn't help.
Seems to be no other way than to close and open a new PR from a different branch.

ChALkeR closed this Jun 23, 2018
ChALkeR deleted the doc-errcodes-restore-insthook branch June 23, 2018 23:30
Comment thread doc/api/errors.md

> Stability: 1 - Experimental

An [ES6 module][] loader hook specified `format: 'dynamic` but did not provide a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

`format: 'dynamic` — missing single quote.

ChALkeR Jun 23, 2018
edited
Loading

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@vsemozhetbyt Thanks, fixed in #21493.

ChALkeR added invalid Issues and PRs that are invalid. duplicate Issues and PRs that are duplicates of other issues or PRs. labels Jun 24, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate Issues and PRs that are duplicates of other issues or PRs. errors Issues and PRs related to JavaScript errors originated in Node.js core. invalid Issues and PRs that are invalid.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL