Skip to content

Commit 707c5a2

Browse files
committed
Disallow code generation from strings in dev mode
1 parent 614ee71 commit 707c5a2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/kbn-cli-dev-mode/src/dev_server.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ describe('#run$', () => {
143143
"--inheritted",
144144
"--exec",
145145
"--argv",
146+
"--disallow-code-generation-from-strings",
146147
],
147148
"stdio": "pipe",
148149
},

packages/kbn-cli-dev-mode/src/using_server_process.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export function usingServerProcess<T>(
3636
nodeOptions: [
3737
...process.execArgv,
3838
...(ACTIVE_INSPECT_FLAG ? [`${ACTIVE_INSPECT_FLAG}=${process.debugPort + 1}`] : []),
39+
'--disallow-code-generation-from-strings',
3940
],
4041
env: {
4142
...process.env,

0 commit comments

Comments
 (0)