[Tarantool-patches] [PATCH luajit] FFI: Fix pragma push stack limit check and throw on overflow.
Sergey Kaplun
skaplun at tarantool.org
Thu Nov 9 08:57:05 MSK 2023
Hi, folks!
Thanks for the review!
Your comments are fixed, branch is rebased on master and force-pushed.
See iterative diff below.
===================================================================
diff --git a/test/tarantool-tests/lj-1114-ffi-pragma-pack.test.lua b/test/tarantool-tests/lj-1114-ffi-pragma-pack.test.lua
index e5642828..99b98900 100644
--- a/test/tarantool-tests/lj-1114-ffi-pragma-pack.test.lua
+++ b/test/tarantool-tests/lj-1114-ffi-pragma-pack.test.lua
@@ -5,7 +5,7 @@ local tap = require('tap')
-- See also: https://github.com/LuaJIT/LuaJIT/issues/1114.
local test = tap.test('lj-1114-ffi-pragma-pack')
-local ffi = require 'ffi'
+local ffi = require('ffi')
test:plan(2)
@@ -37,7 +37,7 @@ end
local err, msg = pcall(ffi_cdef_wp)
-test:ok(not err, 'the error is thrown when couner overflows')
+test:ok(not err, 'the error is thrown when counter overflows')
test:like(msg, 'chunk has too many syntax levels',
'the error message is correct')
===================================================================
--
Best regards,
Sergey Kaplun
More information about the Tarantool-patches
mailing list