8000 [bug wasm/js] jsify/dartify issue converting a simple int · Issue #55203 · dart-lang/sdk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[bug wasm/js] jsify/dartify issue converting a simple int #55203
Closed
@alextekartik

Description

@alextekartik

I'm using flutter master 3.21.0.7.0.pre.47 and dart 3.4.0

The following code:

print(1.jsify().dartify());
print(1.toJS.dartify());

prints 1 when compiled as javascript and 1.0 when compiled as wasm (following flutter instructions)

So it seems all int are converted to double. Is this normal? If yes, how to properly do a int or double conversion in wasm without loosing the type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart2wasmIssues for the dart2wasm compiler.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0