Skip to content

Few questions and a possible bug #8

@2dengine

Description

@2dengine

Hello, I like the idea of your library and I am trying to understand how it works.

Can you please talk a little bit about the mechanism that you used to pass data from JS to Lua?

    FS = {};
    FS.writeFile = function(where, content)
    {
        __storeWebDB(content, "FILE_DATA", where);
    }

I can see that FS.writeFile is only referenced from js.lua, so I am assuming that it is not called by the love.js.

function JS.stringFunc(str, ...)
    str = "(function(){"..str.."})()"
    if(#arg > 0) then

I think the code above should be:

function JS.stringFunc(str, ...)
    str = "(function(){"..str.."})()"
    local arg = { ... }
    if(#arg > 0) then

The _G.arg variable in Lua/Love2d refers to the application's command line arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions