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

test: add test for extracting function name in inspect_repl.js by cola119 · Pull Request #42399 · nodejs/node · GitHub

/ node Public

test: add test for extracting function name in inspect_repl.js - #42399

Merged
nodejs-github-bot merged 1 commit into
nodejs:masterfrom
cola119:test-debugger-func-name
May 1, 2022
Merged

test: add test for extracting function name in inspect_repl.js#42399
nodejs-github-bot merged 1 commit into
nodejs:masterfrom
cola119:test-debugger-func-name

Conversation

cola119 commented Mar 19, 2022
edited
Loading

Copy link
Copy Markdown
Member

This PR adds test for extractFunctionName function in lib/internal/debugger/inspect_repl.js and improves code coverage. That function previously was untested. ref
I found some issues serializing a function name. I'll fix them in other PR.

nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Mar 19, 2022
Comment on lines +22 to +23
.then(() => cli.command('exec a = function func () {}; a;'))
.then(() => assert.match(cli.output, /\[Function\]/))

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

The current logic seems to not consider white spaces between function name and brackets.

cola119 commented Apr 30, 2022

Copy link
Copy Markdown
Member Author

@Trott @jasnell Sorry for bothering you. May I ask when this PR will get landed? I'd like to work on some tasks depending on this change.

Trott added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 30, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 30, 2022

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Trott added the commit-queue Add this label to land a pull request using GitHub Actions. label May 1, 2022
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 1, 2022
nodejs-github-bot merged commit d268cf5 into nodejs:master May 1, 2022

Copy link
Copy Markdown
Collaborator

Landed in d268cf5

cola119 deleted the test-debugger-func-name branch May 1, 2022 04:24
targos pushed a commit that referenced this pull request May 2, 2022
PR-URL: #42399
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos mentioned this pull request May 2, 2022
juanarbol pushed a commit that referenced this pull request May 31, 2022
PR-URL: #42399
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Jun 27, 2022
PR-URL: #42399
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Jul 12, 2022
PR-URL: #42399
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Jul 31, 2022
PR-URL: #42399
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
guangwong pushed a commit to noslate-project/node that referenced this pull request Oct 10, 2022
PR-URL: nodejs/node#42399
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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

needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL