Skip to content

Commit 00377cf

Browse files
committed
remove bad eval
1 parent 13271db commit 00377cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/customCommands.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export const customCommandsConfig = {
8383
}
8484
],
8585
handler ([code]) {
86-
// eslint-disable-next-line no-eval -- this is a feature, not a bug
87-
eval(code)
86+
// eslint-disable-next-line no-new-func -- this is a feature, not a bug
87+
new Function(code)()
8888
}
8989
},
9090
// openCommandsScreen: {}

0 commit comments

Comments
 (0)