Commit Detail
Commit 56d6f44
Allow `new Function()` with no source when eval is blocked
When V8's code generation callback receives an undefined source (e.g.
`new Function()` with no arguments, or `class Foo extends Function {
constructor() { super(); } }`), there is no dynamic code to evaluate.
Allow these cases even when eval is otherwise blocked, since they pose
no code-injection risk.
Files changed
3 files changed~3 modified