REGRESSION (r226485): Many new wasm leaks detected by the leaks bot
[WebKit-https.git] / Tools / Scripts / webkitpy / layout_tests / run_webkit_tests.py
index 8e97516..86872c9 100755 (executable)
@@ -429,6 +429,9 @@ def _set_up_derived_options(port, options):
     if options.platform in ["gtk", "wpe"]:
         options.webkit_test_runner = True
 
+    if options.leaks:
+        options.additional_env_var.append("JSC_usePoisoning=0")
+        options.additional_env_var.append("__XPC_JSC_usePoisoning=0")
 
 def run(port, options, args, logging_stream):
     logger = logging.getLogger()