Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: use correct variable in node_builtins.cc #47343

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

targos
Copy link
Member

@targos targos commented Mar 31, 2023

No description provided.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/startup

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Mar 31, 2023
Copy link
Member

@joyeecheung joyeecheung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be fixed by making L589 and L595 use builtins_in_snapshot_js instead. Somehow we ended up using builtins_without_cache_js for them, which is technically okay, because it then acts like a temporary handle that gets reused and pointed to another V8 value, but the handle that's meant to be used is actually builtins_in_snapshot_js. Keeping using a handle that's named builtins_without_cache_js for compiledInSnapshot would be confusing.

@targos
Copy link
Member Author

targos commented Apr 1, 2023

@joyeecheung feel free to open an alternative PR. Otherwise I'll update this one on Monday

@targos targos marked this pull request as draft April 1, 2023 07:00
@targos targos marked this pull request as ready for review April 4, 2023 11:33
@targos targos force-pushed the rm-builtins_in_snapshot_js branch from 6cdbeed to eaf854e Compare April 4, 2023 11:33
@targos
Copy link
Member Author

targos commented Apr 4, 2023

Updated

@targos targos changed the title src: remove unused variable in node_builtins.cc src: use correct variable in node_builtins.cc Apr 4, 2023
@legendecas
Copy link
Member

Though I'm thinking that maybe we don't need three intermediate local handles -- single local handle seems pretty sufficient in the case.

@targos targos added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 5, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 5, 2023
@nodejs-github-bot
Copy link
Collaborator

@targos
Copy link
Member Author

targos commented Apr 5, 2023

BTW, any idea on why the --error-on-warn option only works on node-v8, and not on this repo?

@nodejs-github-bot
Copy link
Collaborator

@targos targos added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 11, 2023
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 11, 2023
@nodejs-github-bot nodejs-github-bot merged commit 25ad49b into nodejs:main Apr 11, 2023
@nodejs-github-bot
Copy link
Collaborator

Landed in 25ad49b

targos added a commit that referenced this pull request May 2, 2023
PR-URL: #47343
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
@targos targos mentioned this pull request May 2, 2023
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
PR-URL: #47343
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
MoLow pushed a commit to MoLow/node that referenced this pull request Jul 6, 2023
PR-URL: nodejs#47343
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants