Skip to content

Commit b8c362b

Browse files
authored
feat: use 'load' instead of 'loadstring' if the 'load' is not exist
1 parent 7267ca1 commit b8c362b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonschema.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local store = require 'jsonschema.store'
2-
local loadstring = loadstring
2+
local loadstring = loadstring or load
33
local tostring = tostring
44
local pairs = pairs
55
local ipairs = ipairs

0 commit comments

Comments
 (0)