fengari-web icon indicating copy to clipboard operation
fengari-web copied to clipboard

Provides everything you need to run Fengari in the browser.

Results 14 fengari-web issues
Sort by recently updated
recently updated
newest added

I have a webserver that has a path structure like this: ``` www www/client www/client/AI www/client/AI/AI.lua www/client/AI/Const.lua www/client/AI/Util.lua ``` `AI.lua` is the main LUA file that is called through JavaScript...

question

I have sample code and very strange (wrong ?) results it outputs ```lua local out = document:getElementById("out") out.onclick = nil js.global.console:log('property value') js.global.console:log(out.onclick) js.global.console:log('property type') js.global.console:log(type(out.onclick)) js.global.console:log('null type') js.global.console:log(type(null)) js.global.console:log('nil...

question

How much trouble would it be to add support for `io.stdout:write`, `io.stdin:read`, `io.open` in read mode, and `file:read`? I assume `io.stdout:write` is easy; basically a `print` without tabs or newlines,...

Is it possible to run Fengari from a Web Worker? Naively trying `importScripts("fengari-web.js");` gives the following error: ``` fengari-web.js:1 Uncaught ReferenceError: window is not defined at fengari-web.js:1 at worker.js:1 ```...

e.g. Two script tags are added to document, they both contain code to remove the other. Do both run? ```html console.log("A") var b = document.getElementById("b"); b.parentNode.removeChild(b); console.log("B") var a =...

Can we support any `on*` handlers on any element? - Use a namespaced attribute in html to know that it's lua? e.g. `` - Use a mutation observer to watch...

enhancement

When I try to load this file (https://github.com/LocalIdentity/PathOfBuilding/blob/master/Modules/Common.lua) I'm getting this error : ``` uncaught exception http://localhost:3000/PathOfBuilding/Modules/Common.lua:23: module 'lcurl.safe' not found: no field package.preload['lcurl.safe'] no file './lua/5.3/lcurl/safe.lua' no file './lua/5.3/lcurl/safe/init.lua'...

question

Displayed warning: > Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/ This occurs right after loading...

question

http://www.backalleycoder.com/2012/04/25/i-want-a-damnodeinserted/ See also https://github.com/muicss/sentineljs

enhancement

Closes #15 I'm a little concerned about sentinel-js's globally visible behaviour: it adds a `` element to the document. I think this wouldn't be acceptable in some contexts e.g. if...

enhancement