We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57833e2 commit 41e9bf2Copy full SHA for 41e9bf2
system/include/emscripten/bind.h
@@ -23,7 +23,7 @@
23
#include <emscripten/val.h>
24
#include <emscripten/wire.h>
25
26
-#if __has_feature(leak_sanitizer) || __has_feature(address_sanitizer)
+#if defined(HAS_LSAN) || __has_feature(address_sanitizer)
27
#include <sanitizer/lsan_interface.h>
28
#endif
29
@@ -700,7 +700,7 @@ template<typename T>
700
inline T* getContext(const T& t) {
701
// not a leak because this is called once per binding
702
auto* ret = new T(t);
703
704
__lsan_ignore_object(ret);
705
706
return ret;
0 commit comments