| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| Script.prototype.runInThisContext = function(options) { | ||
| if (options && options.breakOnSigint) { | ||
| return sigintHandlersWrap(() => { | ||
| const sigintHandler = () => { |
There was a problem hiding this comment.
If line length is below 80 chars I think it is ok to put the whole function expression on one line.
Sorry, something went wrong.
There was a problem hiding this comment.
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?
Sorry, something went wrong.
There was a problem hiding this comment.
where is the doc you are referring to , i want to understand this a little better
Sorry, something went wrong.
|
CI: https://ci.nodejs.org/job/node-test-commit/5938/console Going to land if no one objects. |
Sorry, something went wrong.
|
#10816 should land at the same time as this. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
vm
Description of change
named arrow function handlers :)
Ref: #8913