We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i64
f64
As the title states, the documentation state Date.now() returns a i64 value but the wasm module actually expects a f64.
Date.now()
(type (;18;) (func (result f64))) (import "env" "Date.now" (func (;95;) (type 18)))
Check the wat file.
v0.27.32
The text was updated successfully, but these errors were encountered:
It's binded import. Actual Date.now() in AssemblyScript will reuse it and cast to i64. See https://github.com/AssemblyScript/assemblyscript/blob/main/std/assembly/date.ts#L40
Sorry, something went wrong.
@MaxGraey what does that mean?
From the native side I've tried to bind to a int64 function but it didn't work. It only worked when I change it to f64.
No branches or pull requests
Bug description
As the title states, the documentation state
Date.now()
returns a i64 value but the wasm module actually expects a f64.Steps to reproduce
Check the wat file.
AssemblyScript version
v0.27.32
The text was updated successfully, but these errors were encountered: