| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This makes sure acorn is only loaded in case it is necessary.
Sorry, something went wrong.
|
Doesn't this make --trace-sync-io nag? This could be a semver-major. Upd: ah, acorn was landed in #17581 which is a semver-major and didn't get into 9.x, so probably no need to label this semver-major. I still am not very comfortable on having assert depend on acorn (and nag on --trace-sync-io) though. |
Sorry, something went wrong.
|
@ChALkeR this change will only load acorn once, when it is first required. After that, the module cache should be hit besides the error cache that is implemented here as well. I am not a huge fan of using acorn either but it makes simple assert much more powerful. If there is a different way of doing this: I would love to know. |
Sorry, something went wrong.
|
@ChALkeR I guess your comment is not blocking this PR, right? |
Sorry, something went wrong.
This makes sure acorn is only loaded in case it is necessary. PR-URL: nodejs#19863 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Landed in 9c06770 Since the author-ready label was not removed, I guessed it was fine to land this. |
Sorry, something went wrong.
|
@BridgeAR My comment was not blocking this, but I am unhappy with how this upsets --trace-sync-io. Not sure how to work-around that while keeping acorn, though. It would be much better if V8 exposed its js parsing API, like SpiderMonkey does. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This makes sure acorn is only loaded in case it is necessary. This prevents acorn always being loaded on startup.
I decided to use the modules cache instead of special handling this. The loading
is only done rarely.
Checklist