| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index c168d12d083784bae611c265f19695adba7c26d4..8f3247f5ce00376e331d2bad596d56ca2252730b 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -946,6 +946,7 @@ Failure* Isolate::ReThrow(MaybeObject* exception) {
|
|
|
|
|
| Failure* Isolate::ThrowIllegalOperation() {
|
| + if (FLAG_stack_trace_on_illegal) PrintStack(stdout);
|
| return Throw(heap_.illegal_access_string());
|
| }
|
|
|
| @@ -1122,8 +1123,6 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) {
|
| // while the bootstrapper is active since the infrastructure may not have
|
| // been properly initialized.
|
| if (!bootstrapping) {
|
| - Handle<String> stack_trace;
|
| - if (FLAG_trace_exception) stack_trace = StackTraceString();
|
| Handle<JSArray> stack_trace_object;
|
| if (capture_stack_trace_for_uncaught_exceptions_) {
|
| if (IsErrorObject(exception_handle)) {
|
| @@ -1163,7 +1162,6 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) {
|
| "uncaught_exception",
|
| location,
|
| HandleVector<Object>(&exception_arg, 1),
|
| - stack_trace,
|
| stack_trace_object);
|
| thread_local_top()->pending_message_obj_ = *message_obj;
|
| if (location != NULL) {
|
|
|