Chromium Code Reviews| Index: runtime/lib/stacktrace.cc |
| diff --git a/runtime/lib/stacktrace.cc b/runtime/lib/stacktrace.cc |
| index 486d96d32c5423d25191aaecbf305ccd84528bf2..3e02ca997d1a2174fe926b782a009079d3866189 100644 |
| --- a/runtime/lib/stacktrace.cc |
| +++ b/runtime/lib/stacktrace.cc |
| @@ -26,7 +26,8 @@ DEFINE_NATIVE_ENTRY(Stacktrace_getFullStacktrace, 1) { |
| DEFINE_NATIVE_ENTRY(Stacktrace_getStacktrace, 1) { |
| const Stacktrace& trace = |
| Stacktrace::CheckedHandle(arguments->NativeArgAt(0)); |
| - return String::New(trace.ToCStringInternal(0)); |
| + intptr_t frame_index = 0; |
| + return String::New(trace.ToCStringInternal(&frame_index)); |
|
Jacob
2014/04/24 20:28:55
needed to avoid a null ptr exception.
|
| } |