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

vm: name anonymous functions by solebox · Pull Request #9388 · nodejs/node · GitHub

/ node Public

vm: name anonymous functions - #9388

Closed
solebox wants to merge 2 commits into
nodejs:masterfrom
solebox:vm
Closed

vm: name anonymous functions#9388
solebox wants to merge 2 commits into
nodejs:masterfrom
solebox:vm

Conversation

solebox commented Oct 31, 2016
edited by Fishrock123
Loading

Copy link
Copy Markdown
Contributor
Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

vm

Description of change

named arrow function handlers :)

Ref: #8913

nodejs-github-bot added the vm Issues and PRs related to the vm subsystem. label Oct 31, 2016
Comment thread lib/vm.js Outdated
Script.prototype.runInThisContext = function(options) {
if (options && options.breakOnSigint) {
return sigintHandlersWrap(() => {
const sigintHandler = () => {

Copy link
Copy Markdown
Member

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

If line length is below 80 chars I think it is ok to put the whole function expression on one line.

Copy link
Copy Markdown
Member

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

I am a bit 😕 about the name here… this function does not handle any kind of signal; it’s the exact opposite, the function is run undisturbed by SIGINTs. (The comment/code for sigintHandlersWrap has a bit more information.) So maybe you could call it realRunInThisContext or runScriptUninterruped or something like that?

Copy link
Copy Markdown
Contributor 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

where is the doc you are referring to , i want to understand this a little better

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-commit/5938/console

Going to land if no one objects.

benjamingr pushed a commit that referenced this pull request Nov 6, 2016
Name anonymous arrow function in vm module to improve readability

PR-URL: #9388
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <inglor@gmail.com>
Ref: #8913

Copy link
Copy Markdown
Member

Landed in 5079763

Thanks!

benjamingr closed this Nov 6, 2016
evanlucas pushed a commit that referenced this pull request Nov 7, 2016
Name anonymous arrow function in vm module to improve readability

PR-URL: #9388
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <inglor@gmail.com>
Ref: #8913
MylesBorins added the baking-for-lts PRs that need to wait before landing in a LTS release. label May 8, 2017

gibfahn commented Jun 17, 2017

Copy link
Copy Markdown
Member

#10816 should land at the same time as this.

MylesBorins added dont-land-on-v6.x and removed baking-for-lts PRs that need to wait before landing in a LTS release. lts-watch-v6.x labels Nov 14, 2017
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

vm Issues and PRs related to the vm subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL