daurnimator

Results 792 comments of daurnimator

fengari itself uses jest; so this seems odd... Could you share your tests? And please share the error message left on the stack.

Thanks for digging a bit @fmhdp . This sounds like a jest issue. However, it might be possible to rewrite https://github.com/fengari-lua/fengari/blob/master/src/lauxlib.js#L903-L944 to not use `Buffer` at all and tiptoe around...

https://wingolog.org/archives/2019/05/23/bigint-shipping-in-firefox

> However, I think this is still an issue, as code running in the browser should still be able to require just the "fengari" module. Doesn't webpack do this for...

fengari can't magically convert C code to work in the browser. You'd be better off finding a msgpack library written in either pure Lua or Javascript.

I don't think any of us are Typescript users, so we don't have the expertise to create such type definition files. That said, if you were to send a PR...

So this is a bit tricky, we need to be able to pass FENGARICONF at webpack build time. See https://github.com/fengari-lua/fengari-web/blob/815fdcf8d3b03f13f70033f312ea523aae57cda1/webpack.config.js#L37 Adding `typeof process !== "undefined"` would prevent it from working.

Wait no.... I just realised that in webpack we set it to `undefined` anyway. So we can add it after all. However that's just for fengari-web's use case. For anyone...

> (Admittedly, it's a bit ugly that this basically defines a new global variable __FENGARICONF__, but I think it's okay; a naming conflict with that name seems very unlikely.) Doesn't...