Sandboxed gopher-lua with time, memory and call-stack limits from [sandbox], a goquery-backed doc API, price parsing, and the 'check', 'plugin test' and 'fixtures' commands. Sellers are first_party, fulfilled (shipped by the shop) or third_party, and items accept fulfilled by default; used-only offers are not available. Plugin tests run on real pages that 'dibs fixtures' fetches into an untracked directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
326 B
Lua
9 lines
326 B
Lua
-- Loops forever on "loop" and "pcall"; pcall must not be able to swallow the
|
|
-- timeout. Any other URL returns normally.
|
|
return { parse = function(doc, url)
|
|
if url == "loop" then while true do end end
|
|
if url == "pcall" then while true do pcall(function() while true do end end) end end
|
|
|
|
return { available = true }
|
|
end }
|