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

src: restore context default IsCodeGenerationFromStringsAllowed value by legendecas · Pull Request #44324 · nodejs/node · GitHub

/ node Public

src: restore context default IsCodeGenerationFromStringsAllowed value - #44324

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
legendecas:issue-44287
Aug 28, 2022
Merged

src: restore context default IsCodeGenerationFromStringsAllowed value#44324
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
legendecas:issue-44287

Conversation

Copy link
Copy Markdown
Member

Context's default IsCodeGenerationFromStringsAllowed value can be
changed by v8 flag --disallow-code-generation-from-strings. Restore
the value at runtime when delegating the code generation validation to
node::ModifyCodeGenerationFromStrings.

The context's settings are serialized in the snapshot. Reset the setting
values to its default values before the serialization so that it can be
correctly re-initialized after deserialization at runtime.

Fixes: #44287

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/startup

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 Aug 21, 2022
Comment thread src/api/environment.cc Outdated
Comment thread src/node_snapshotable.cc Outdated
Comment thread src/api/environment.cc Outdated
legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 22, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 22, 2022

Copy link
Copy Markdown
Collaborator

Context's default IsCodeGenerationFromStringsAllowed value can be
changed by v8 flag `--disallow-code-generation-from-strings`. Restore
the value at runtime when delegating the code generation validation to
`node::ModifyCodeGenerationFromStrings`.

The context's settings are serialized in the snapshot. Reset the setting
values to its default values before the serialization so that it can be
correctly re-initialized after deserialization at runtime.

Copy link
Copy Markdown
Member Author

Rebased and resolved conflicts.

legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 24, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 24, 2022

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

legendecas added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 28, 2022
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 28, 2022
nodejs-github-bot merged commit 3370e7c into nodejs:main Aug 28, 2022

Copy link
Copy Markdown
Collaborator

Landed in 3370e7c

legendecas deleted the issue-44287 branch August 28, 2022 16:51
RafaelGSS pushed a commit that referenced this pull request Sep 5, 2022
Context's default IsCodeGenerationFromStringsAllowed value can be
changed by v8 flag `--disallow-code-generation-from-strings`. Restore
the value at runtime when delegating the code generation validation to
`node::ModifyCodeGenerationFromStrings`.

The context's settings are serialized in the snapshot. Reset the setting
values to its default values before the serialization so that it can be
correctly re-initialized after deserialization at runtime.

PR-URL: #44324
Fixes: #44287
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

Copy link
Copy Markdown
Member

Sadly, this is not landing cleanly on the v16.x branch; it depends on #43531

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

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.

--disallow-code-generation-from-strings is ignored since versions 16.17 and 18.6

5 participants


Back | FazBrowse Home | New Git URL