Comments (3)
Since JavaScript doesn't supports int64 yet, a signature with a int64 in wasm can't be exported to JS.
from webassembly.
also getting this issue when trying to run a .wasm file with i64 types in nodejs. anybody found a way to get this working in javascript?
from webassembly.
Support for i64's on the boundary is behind the --experimental-wasm-bigint
flag in current node. Enabling that should make it work, with BigInts representing the respective i64 value in JS.
An alternative to using experimental features is to return an i32 for the low bits, and export another helper function returning the high bits of the last operation as another i32. Something like long.js's Long.fromBits
can work with these.
from webassembly.
Related Issues (20)
- Leaks global variable WebAssembly HOT 5
- DYNAMICPTR_TOP must be a number HOT 4
- FAILED Error: spawn EACCES HOT 3
- EACCES from scripts/setup HOT 4
- LinkError when enabling compiler optimization
- Binaries for ARM HOT 2
- Cannot install on wsl HOT 1
- malloc vs memory.grow HOT 2
- Exit status of wa-compile not properly propagating
- VS2017
- tools/bin/linux-x64/clang: error while loading shared libraries: libtinfo.so.5 HOT 3
- Weird Code Generation HOT 3
- How to install in Docker? HOT 1
- How to force a standard for compilation? HOT 1
- fatal error: 'stdio.h' file not found
- How to use malloc ?
- Tools not working HOT 8
- Working examples HOT 2
- Can't compile webassembly.h from cpp file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webassembly.