Skip to content

src: restore context default IsCodeGenerationFromStringsAllowed value

Rodrigo Muino Tomonari requested to merge github/fork/legendecas/issue-44287 into main

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: https://github.com/nodejs/node/issues/44287

Merge request reports

Loading