diff options
Diffstat (limited to 'deps/v8/src/diagnostics/code-tracer.h')
-rw-r--r-- | deps/v8/src/diagnostics/code-tracer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/src/diagnostics/code-tracer.h b/deps/v8/src/diagnostics/code-tracer.h index 6dd8d3e086..a9f276bf44 100644 --- a/deps/v8/src/diagnostics/code-tracer.h +++ b/deps/v8/src/diagnostics/code-tracer.h @@ -52,6 +52,9 @@ class CodeTracer final : public Malloced { if (file_ == nullptr) { file_ = base::OS::FOpen(filename_.begin(), "ab"); + CHECK_WITH_MSG(file_ != nullptr, + "could not open file. If on Android, try passing " + "--redirect-code-traces-to=/sdcard/Download/<file-name>"); } scope_depth_++; @@ -63,6 +66,7 @@ class CodeTracer final : public Malloced { } if (--scope_depth_ == 0) { + DCHECK_NOT_NULL(file_); fclose(file_); file_ = nullptr; } |