Skip to content

Commit

Permalink
feat: use 'load' instead of 'loadstring' if the 'load' is not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
E-Fir authored Oct 31, 2022
1 parent 7267ca1 commit b8c362b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonschema.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local store = require 'jsonschema.store'
local loadstring = loadstring
local loadstring = loadstring or load
local tostring = tostring
local pairs = pairs
local ipairs = ipairs
Expand Down

0 comments on commit b8c362b

Please sign in to comment.