emscripten-core / emscripten-core/emscripten

Bound pointer is always null when method is invoked

Open
#19,439 1 comment 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

Please include the following in your bug report:

**Version of emscripten/emsdk:**
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.39 (36f871819b566281d160470a1ec4515f379e9f77)
clang version 17.0.0 (https://github.com/llvm/llvm-project c672c3fe05adbb590abc99da39143b55ad510538)
Target: wasm32-unknown-emscripten
Thread model: posix

**Repro**

Address and Undefined Sanitizer both issue diagnostics about this.

```
cat > index.html <

Testcase



Module().then(instance => {
MyModule = instance;

theScopedValueFactory = new MyModule.ScopedValueFactory();
let vec = new theScopedValueFactory.makeVector(1, 1, 1);
console.log(vec.x(), vec.y());
});

EOF

cat > myBindings.idl < myBindings.cpp <

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.