5 ms·
[Error] TypeError: i64 not allowed as return type or argument to an imported function [f] ut (framework-a4fd281a1981cd6d009d.js:1:16748) [f] mt
by guessmyname 5y ago
[Error] TypeError: i64 not allowed as return type or argument to an imported function
[f] ut (framework-a4fd281a1981cd6d009d.js:1:16748)
[f] mt (framework-a4fd281a1981cd6d009d.js:1:17899)
[f] L (framework-a4fd281a1981cd6d009d.js:1:115080)
[f] W (framework-a4fd281a1981cd6d009d.js:1:2282)
[f] Jt (framework-a4fd281a1981cd6d009d.js:1:23856)
[f] Zt (framework-a4fd281a1981cd6d009d.js:1:23074)
[N] Zt
[f] (anonymous function) (framework-a4fd281a1981cd6d009d.js:1:128011)
[f] F (framework-a4fd281a1981cd6d009d.js:1:114857)
[f] Xt (framework-a4fd281a1981cd6d009d.js:1:22889)
[N] Xt
I get that error when I click “Run” with the sample code in Safari.
- zackoverflow 5y agoThanks, this is a problem with some browsers not supporting BigInt <-> Wasm i64 conversion, I just made some changes that should fix it
- guessmyname 5y agoPerfect! The updated version works. Nice project. Thanks for sharing.
- ffhhj 5y agoWhich browsers?
- zackoverflow 5y agoCouldn't find a list but I tested it on brave, chrome, firefox, safari and it was safari that was having troubles
- ffhhj 5y agoOh ok, Apple will fix that in five years.
- CryZe 5y agoThis was supposedly fixed by at least Safari 14.1 (or earlier).
- AlexAndScripts 5y agoNo point testing both brave and chrome, as they use the same engine.