<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Hi, Sergey!</p>
<div class="moz-cite-prefix">On 3/4/26 17:31, Sergey Kaplun wrote:<br>
</div>
<p><br>
</p>
<p><snipped></p>
<blockquote type="cite" cite="mid:aahCVKO24cEi2192@root">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">
+-- OOM in the error handler.
+coroutine.wrap(function()
+ local function errmem() local _ = {} end
+ allocinject.enable_null_alloc()
+ local st, msg = xpcall(error, errmem)
+ allocinject.disable()
+test:ok(not st, 'OOM incorrect status')
+ -- Prevent preallocated error message.
+test:ok(<a class="moz-txt-link-freetext" href="msg:match('error">msg:match('error</a> in ' .. 'error handling'),
+ 'OOM incorrect errmsg: ' .. msg)
+end)()
+
+-- STKOV in the error handler.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">Why abbreviation is used? May be "stack overflow"? Feel free to ignore.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
This is done to be consistent witht the OOM abbreviation above.
If you don't insist, I would leave them as is.</pre>
</blockquote>
Ok, let's leave as is. LGTM
<blockquote type="cite" cite="mid:aahCVKO24cEi2192@root">
<pre wrap="" class="moz-quote-pre">
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">+coroutine.wrap(function()
+ local function stkov() stkov() end
+ local st, msg = xpcall(error, stkov)
+test:ok(not st, 'STKOV incorrect status')
+ -- Prevent preallocated error message.
+test:ok(<a class="moz-txt-link-freetext" href="msg:match('error">msg:match('error</a> in ' .. 'error handling'),
+ 'STKOV incorrect errmsg: ' .. msg)
+end)()
+
+test:done(true)
</pre>
</blockquote>
</blockquote>
<pre wrap="" class="moz-quote-pre">
<snipped>
</pre>
</blockquote>
</body>
<lt-container></lt-container>
</html>