aboutsummaryrefslogtreecommitdiff
path: root/testes/utf8.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-04 16:31:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-04 16:31:24 -0300
commit8004798b0374744208b102bb4cbcf12f904ea120 (patch)
tree0809ccedaa52f187505121c3b85029d7496465b9 /testes/utf8.lua
parent5ca1075b714e825006e8ba4f8e7ea5544879bb41 (diff)
downloadlua-8004798b0374744208b102bb4cbcf12f904ea120.tar.gz
lua-8004798b0374744208b102bb4cbcf12f904ea120.tar.bz2
lua-8004798b0374744208b102bb4cbcf12f904ea120.zip
Fixed wrong error message in 'return math.seed(0)'
Bug introduced in commit 28d829c8: OP_TAILCALL might raise an error without saving 'pc'. (This commit also fixes a detail in 'testes/uf8.lua'.)
Diffstat (limited to 'testes/utf8.lua')
-rw-r--r--testes/utf8.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/utf8.lua b/testes/utf8.lua
index b3b7687f..acbb181d 100644
--- a/testes/utf8.lua
+++ b/testes/utf8.lua
@@ -66,7 +66,7 @@ local function check (s, t, nonstrict)
66 assert(utf8.len(s, pi, pi1 - 1, nonstrict) == 1) 66 assert(utf8.len(s, pi, pi1 - 1, nonstrict) == 1)
67 assert(utf8.len(s, pi, -1, nonstrict) == l - i + 1) 67 assert(utf8.len(s, pi, -1, nonstrict) == l - i + 1)
68 assert(utf8.len(s, pi1, -1, nonstrict) == l - i) 68 assert(utf8.len(s, pi1, -1, nonstrict) == l - i)
69 assert(utf8.len(s, 1, pi, -1, nonstrict) == i) 69 assert(utf8.len(s, 1, pi, nonstrict) == i)
70 end 70 end
71 71
72 local i = 0 72 local i = 0