Closed jaredallard closed 8 years ago
this.gc
at commit fa9d5921c60e9c640988f17f34841269f89ea16d and this is fixed.Huh? So is it fixed in master or not?
Your sample works in the repl at https://kripken.github.io/lua.vm.js/repl.html for me.
@daurnimator Sorry for being confusing, this is in a node.js env.
@daurnimator Sorry for being confusing, this is in a node.js env.
Works for me:
$ node
> require("./dist/lua.vm.js").L.execute('for i,v in ipairs(js.global:Array(table.unpack({"item", "item2"}))) do print(v) end')
item
item2
[]
>
@jaredallard did you figure this out?
@daurnimator Hey, for me this didn't work. The only way I got it to work was doing the aforementioned fix beforehand. Though I haven't used this in a awhile, so it is possible something may have been changed to fix it.
Closing as it works for me. Will reopen if you can reproduce.
Hi. Pretty simple reproduction. Using
0.0.1
via npm, will try master soon.nodejs only
Pure Lua:
EDIT: self built from
master
fails as well.