From 51975472a93a35b9add46aca26bb8eaa44dbb443 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Wed, 12 Jan 2022 00:07:53 +0100 Subject: [PATCH] Add bit32 polyfill globally --- data/core/start.lua | 2 ++ data/core/tokenizer.lua | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/core/start.lua b/data/core/start.lua index 482f8bd0..b3bcc18e 100644 --- a/data/core/start.lua +++ b/data/core/start.lua @@ -32,3 +32,5 @@ end } table.pack = table.pack or pack or function(...) return {...} end table.unpack = table.unpack or unpack + +bit32 = bit32 or require "core.bit" diff --git a/data/core/tokenizer.lua b/data/core/tokenizer.lua index 03769c46..5fd8c69f 100644 --- a/data/core/tokenizer.lua +++ b/data/core/tokenizer.lua @@ -1,6 +1,5 @@ local syntax = require "core.syntax" local common = require "core.common" -local bit32 = require "core.bit" local tokenizer = {}