Closed CerfurMark closed 10 years ago
Hi Mark,
Actually, your original post did highlight one valid issue: Moonshine does not throw an error when dividing by nil
, rather it incorrectly returns nan
.
I'll leave this open until I get it fixed.
Cheers., Paul.
Title updated to reflect outstanding issue.
Fixed in e1dc12eac7cfc4d380bf24ea1ef1dbbee48408e0.
I started this bug report because I thought xpcall() wasn't working, but everything is actually working perfectly. Since I don't see how to delete a bug once it's opened, so I'll leave this code as an example of how to figure out if a browser supports touch() events. If myfunction() works, then the device supports touch().
function myfunction() window.document:createEvent("TouchEvent") end
function errHandler() print("err") end
local status = xpcall(myfunction, errHandler) print(status)