diff --git a/src/index.ts b/src/index.ts index 6178b1e45f..1b9fc8fa61 100644 --- a/src/index.ts +++ b/src/index.ts @@ -150,7 +150,7 @@ function create(source: string, _options: CompileOptions = {}) { } try { - return (0, eval)(compiled.js.code); + return (new Function(compiled.js.code))(); } catch (err) { if (_options.onerror) { _options.onerror(err);