https://bugzilla.wikimedia.org/show_bug.cgi?id=60386
Web browser: --- Bug ID: 60386 Summary: Install luasocket for all sister projects to use with Scribunto Product: Wikimedia Version: wmf-deployment Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Unprioritized Component: General/Unknown Assignee: wikibugs-l@lists.wikimedia.org Reporter: gryll...@fastmail.fm Classification: Unclassified Mobile Platform: --- Lua code: -- loads the HTTP module and any libraries it requires local http = require("socket.http") local p = {} function p.main(frame) r, e = http.request("http://wrong.host/") return e end return p Invoke code: {{#invoke:Foo|main}} Expected result: Returned 'host not found' or some like. Actual result: Returned "script error". Rationale: Retrieve API URLs contents using Lua, like it is now possible in JS. Note that there wouldn't be a high additional load, since the module would only be loaded when a Lua module is invoked, and only if it has a relevant require() statement. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l