emscripten-core / emscripten-core/emscripten

Trying to pass i64 without WASM_BIGINT should warn or assert

Open
#15,871 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

This code:

```
#include
#include

EM_JS(void, foo, (int64_t i), {
console.log(i);
})

int main() {
foo(1);
}
```

should issue at least a runtime warning if it was not compiled with WASM_BIGINT.

Comments and pointers appreciated for a (hopefully) upcoming PR.

**Version of emscripten/emsdk:**
```
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.0.0 (3fd52e107187b8a169bb04a02b9f982c8a075205)
clang version 14.0.0 (https://github.com/llvm/llvm-project 4348cd42c385e71b63e5da7e492172cff6a79d7b)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /Volumes/SSD/git/emsdk/upstream/bin
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.