Logo
Explore Help
Sign In
OSSForks/node
1
0
Fork 0
You've already forked node
mirror of https://github.com/zebrajr/node.git synced 2026-01-15 12:15:26 +00:00
Code Issues Actions 8 Packages Projects Releases Wiki Activity
Files
master
node/test/parallel/test-eval.js

8 lines
159 B
JavaScript
Raw Permalink Normal View History

src: restore context default IsCodeGenerationFromStringsAllowed value 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: https://github.com/nodejs/node/pull/44324 Fixes: https://github.com/nodejs/node/issues/44287 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
2022-08-28 23:36:46 +08:00
'use strict';
require('../common');
const assert = require('assert');
// Verify that eval is allowed by default.
assert.strictEqual(eval('"eval"'), 'eval');
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 3485ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API