From 5e1d2ce0ad5c8b67843ae1518bfb1ce2296dda2c Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 29 Dec 2016 16:18:43 -0500 Subject: [PATCH] shims: Add the string.wlen function --- tests/examples/shims/_common_template.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/examples/shims/_common_template.lua b/tests/examples/shims/_common_template.lua index 4af38e539..edb37ca17 100644 --- a/tests/examples/shims/_common_template.lua +++ b/tests/examples/shims/_common_template.lua @@ -1,3 +1,8 @@ +-- luacheck: globals string +function string.wlen(self) + return #self +end + return function(_, _) -- Set the global shims