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 094013d commit 94314feCopy full SHA for 94314fe
system/include/emscripten/bind.h
@@ -21,7 +21,7 @@
21
#include <emscripten/val.h>
22
#include <emscripten/wire.h>
23
24
-#if __has_feature(leak_sanitizer) || __has_feature(address_sanitizer)
+#if defined(HAS_LSAN) || __has_feature(address_sanitizer)
25
#include <sanitizer/lsan_interface.h>
26
#endif
27
@@ -604,7 +604,7 @@ template<typename T>
604
inline T* getContext(const T& t) {
605
// not a leak because this is called once per binding
606
auto* ret = new T(t);
607
608
__lsan_ignore_object(ret);
609
610
return ret;
0 commit comments