Skip to content

luadardo cannot be used in flutter web #28

@thauschildt

Description

@thauschildt

It seems that luadardo cannot be used with flutter build web.
The problem seems to occur when state.openLibs()is called which leads to an error in
line 21: static final lua_dirsep = Platform.pathSeparator; in lib/src/stdlib/package_lib.dart.

Error message: Unsupported operation: Platform._pathSeparator.

So due to missing pathSeparator in flutter web, openLibs cannot be used.

Is it possible to get rid of the pathSeparator? It shouldnt be needed as long as only the built-in libs are loaded?!

To reproduce the error:
The attached file works fine in linux desktop build, but crashes when deployed and opened on the web.

main.dart.txt

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