Skip to content

Commit 710bd0d

Browse files
authored
improve perf of creation (#588)
1 parent 81be18b commit 710bd0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ function build (schema, options) {
178178
const contextFunc = new Function('validator', 'serializer', contextFunctionCode)
179179
const stringifyFunc = contextFunc(validator, serializer)
180180

181+
genFuncNameCounter = 0
181182
refResolver = null
182183
rootSchemaId = null
183184
contextFunctions = null

0 commit comments

Comments
 (0)