From b8c362b62492b23b346781b8dcff8c611d112831 Mon Sep 17 00:00:00 2001 From: E-Fir Date: Mon, 31 Oct 2022 12:30:40 +0300 Subject: [PATCH] feat: use 'load' instead of 'loadstring' if the 'load' is not exist --- lib/jsonschema.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jsonschema.lua b/lib/jsonschema.lua index a347223..a59558e 100644 --- a/lib/jsonschema.lua +++ b/lib/jsonschema.lua @@ -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