| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 8a2f4219c763e014b89720d2c72fe84da981028b..a0a3227ba44e7c2adbb4f3c3bfdb65a86035e113 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -946,6 +946,9 @@ Failure* Isolate::ReThrow(MaybeObject* exception) {
|
|
|
|
|
| Failure* Isolate::ThrowIllegalOperation() {
|
| +#ifdef DEBUG
|
| + PrintStack(stdout);
|
| +#endif // DEBUG
|
| return Throw(heap_.illegal_access_string());
|
| }
|
|
|
| @@ -1122,8 +1125,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 +1164,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) {
|
|
|