| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index c55e00eefa54897c10c4e9fc1f1d3aefaa6bc205..449e92663a1b09047a09f5a200884d8333cb0006 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -773,6 +773,11 @@ Handle<JSArray> Isolate::CaptureCurrentStackTrace(
|
| if (!(options & StackTrace::kExposeFramesAcrossSecurityOrigins) &&
|
| !this->context()->HasSameSecurityTokenAs(fun->context()))
|
| continue;
|
| + Object* script_obj = fun->shared()->script();
|
| + if (!script_obj->IsUndefined(this)) {
|
| + Script* script = Script::cast(script_obj);
|
| + if (script->origin_options().IsEmbedderDebugScript()) continue;
|
| + }
|
| Handle<JSObject> new_frame_obj = helper.NewStackFrameObject(frames[i]);
|
| stack_trace_elems->set(frames_seen, *new_frame_obj);
|
| frames_seen++;
|
|
|