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 777f712 commit fd12890Copy full SHA for fd12890
system/include/emscripten/bind.h
@@ -22,7 +22,7 @@
22
#include <emscripten/val.h>
23
#include <emscripten/wire.h>
24
25
-#if __has_feature(leak_sanitizer) || __has_feature(address_sanitizer)
+#if defined(HAS_LSAN) || __has_feature(address_sanitizer)
26
#include <sanitizer/lsan_interface.h>
27
#endif
28
@@ -631,7 +631,7 @@ template<typename T>
631
inline T* getContext(const T& t) {
632
// not a leak because this is called once per binding
633
auto* ret = new T(t);
634
635
__lsan_ignore_object(ret);
636
637
return ret;
0 commit comments