| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index ea06d73b84f52eb313053062f271f870ce47b698..9b0166189071c8d16e5cad3549d04981ef2312d5 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -405,6 +405,14 @@ Handle<Object> Isolate::CaptureSimpleStackTrace(Handle<JSReceiver> error_object,
|
| elements = MaybeGrow(this, elements, cursor, cursor + 4);
|
|
|
| Handle<AbstractCode> abstract_code = frames[i].abstract_code();
|
| + if (frame->type() == StackFrame::BUILTIN) {
|
| + // Help CallSite::IsConstructor correctly detect hand-written
|
| + // construct stubs.
|
| + Code* code = Code::cast(*abstract_code);
|
| + if (code->is_construct_stub()) {
|
| + recv = handle(heap()->call_site_constructor_symbol(), this);
|
| + }
|
| + }
|
|
|
| Handle<Smi> offset(Smi::FromInt(frames[i].code_offset()), this);
|
| // The stack trace API should not expose receivers and function
|
|
|