@JadenGarcia Oh!
Sorry to say, I can't help you a lot with this error because I get something else here.
Profile icon
[deleted]
@PattanAhmed Yeah, there was in fact a BigInt error, but that would only occur if the function was called, which I couldn't get to happen. It seems like that means it was properly ran for you, what browser are you using?
Profile icon
[deleted]
@PattanAhmed I think there was a null character in the eval, can you check whether or not I fixed it right now?
@JadenGarcia Yes, Of course.
I will wait until 2 hours!
Profile icon
[deleted]
@PattanAhmed @Coder100 Yeah, I'm sorry I had to wait to update it, I was doing stuff irl that forced me away, but I'll speedily update it right away now that I'm back!
Why am I Getting an Illegal Signature Function Call Within JavaScript?
Once I call my function called "main," from /script.js, I get an error, why?
The code seems perfectly valid, in every single way.
@JadenGarcia Hi,

It clearly says:-
Check this example and let this example fit in a place something that fits in your code somewhere where
BigInt
is converted to aNumber
That's it
Thanks!
Hope this helps
@PattanAhmed Odd, I was getting this instead:

@JadenGarcia LoL!
Now, This is a weird error!
Check this website, instead.
https://github.com/emscripten-core/emsdk/issues/476
@PattanAhmed I didn't use emscripten, so that's not of much help, I wrote the .wat myself; the only thing I used was wat2wasm.
@JadenGarcia Oh!

Sorry to say, I can't help you a lot with this error because I get something else here.
@PattanAhmed Yeah, there was in fact a BigInt error, but that would only occur if the function was called, which I couldn't get to happen. It seems like that means it was properly ran for you, what browser are you using?
@PattanAhmed I think there was a null character in the
eval
, can you check whether or not I fixed it right now?@JadenGarcia I am using Firefox!
@JadenGarcia It probably ran well sometimes and some times this may error may come

@PattanAhmed That means it ran perfectly, I need to handle that soon, I'll be back in a few hours, ~2.
@JadenGarcia Yes, Of course.
I will wait until 2 hours!
@PattanAhmed @Coder100 Yeah, I'm sorry I had to wait to update it, I was doing stuff irl that forced me away, but I'll speedily update it right away now that I'm back!
@JadenGarcia Good!
@PattanAhmed Updated, it should log the string before throwing the syntax error, can you confirm?
@JadenGarcia
WHOALA 🚀
It just works fine.
I can confirm
@JadenGarcia Need any more help?
@PattanAhmed I know I've asked for quite a lot, but can I get a screenshot of the console or something to confirm that it's working as intended?
@JadenGarcia Here is the screenshot:-

@PattanAhmed Dang, it worked flawlessly... now how do we get rid of this signature error :/ .
cool so what is the err now @JadenGarcia
@Coder100 Still the illegal signature, do you get an error now that it was updated?
oh, instance...
how about doing something like having:
and then doing
console.log(Object.keys(data))
@JadenGarcia
i get a new one about instance @JadenGarcia
@Coder100 Oh, I was just moving stuff around, refresh it, calling
main
is the error, yet it's a valid function.@JadenGarcia LoL!
Is it solved?
@PattanAhmed Technically the primary problem I came asking about is still unresolved, if anything, due to browser cross-copatability.
@JadenGarcia Yes!
But we can't help you with that?
😢
We have tried all the best we could.
@PattanAhmed RIP, I guess this error will just have to be left open until someone familiar with this comes along. But thank you for your time.
@JadenGarcia Yes...
That's the last decision to make now :(