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 84fad34 commit 479d0ceCopy full SHA for 479d0ce
system/include/emscripten/bind.h
@@ -26,7 +26,7 @@
26
#include <emscripten/val.h>
27
#include <emscripten/wire.h>
28
29
-#if __has_feature(leak_sanitizer) || __has_feature(address_sanitizer)
+#if defined(HAS_LSAN) || __has_feature(address_sanitizer)
30
#include <sanitizer/lsan_interface.h>
31
#endif
32
@@ -747,7 +747,7 @@ template<typename T>
747
inline T* getContext(const T& t) {
748
// not a leak because this is called once per binding
749
auto* ret = new T(t);
750
751
__lsan_ignore_object(ret);
752
753
return ret;
0 commit comments