We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ce46fb commit e50a900Copy full SHA for e50a900
index.js
@@ -99,7 +99,8 @@ function build (schema, options) {
99
dependenciesName.push('ajv')
100
}
101
if (dependencies.length > 0) {
102
- return (new Function(...dependenciesName, code))(...dependencies)
+ dependenciesName.push(code)
103
+ return (Function.apply(null, dependenciesName).apply(null, dependencies))
104
105
return (new Function(code))()
106
0 commit comments