| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
To clarify why I took this approach instead of running the regexes in a new context: Contexts are really memory-expensive, and I'd rather not have to wait for the GC to activate for something we will use only once. It would also complicate the effort to create V8 snapshots for Node.js core (see #17058). |
Sorry, something went wrong.
|
Micro-nit: I'd prefer a more descriptive name for the test and/or a bit more comment explaining what the test is testing for. I'm fine with this landing without these concerns addressed. Just my own opinion/suggestion. Take it or leave it. |
Sorry, something went wrong.
|
this seems like a band-aid, can't we just preprocess the gypi file at build time? |
Sorry, something went wrong.
Yes, but I personally did not want to get into the build system 😄 Feel free to propose a better approach with a new pull request. |
Sorry, something went wrong.
| // convert the Python syntax to proper JSON | ||
| // We cannot use a regex due to side effects on static properties of RegExp | ||
| // (e.g., RegExp.$_). | ||
| let out = ''; |
There was a problem hiding this comment.
Nit: maybe a more descriptive name than "out"?
Sorry, something went wrong.
|
the test will fail on windows for the reasons seen in #19140 (comment) |
Sorry, something went wrong.
|
Closing, as #19140 has been landed. |
Sorry, something went wrong.
|
something to note, 19140 did not fix the fact that the regexp object is still poisoned on windows |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes: #18930
Checklist
Affected core subsystem(s)
bootstrap_node