summaryrefslogtreecommitdiff
path: root/cli/tools/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/test.rs')
-rw-r--r--cli/tools/test.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tools/test.rs b/cli/tools/test.rs
index 5d99677f2..101dcb6b6 100644
--- a/cli/tools/test.rs
+++ b/cli/tools/test.rs
@@ -475,6 +475,12 @@ async fn test_specifier(
None
};
+ // Enable op call tracing in core to enable better debugging of op sanitizer
+ // failures.
+ worker
+ .execute_script(&located_script_name!(), "Deno.core.enableOpCallTracing();")
+ .unwrap();
+
// We only execute the specifier as a module if it is tagged with TestMode::Module or
// TestMode::Both.
if mode != TestMode::Documentation {