Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index f3d047f0a484dc9f1eb09f74d2d56f1755885d9e..e9d526a4538925d3cb146814a2be7ed6a72621a7 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -320,7 +320,7 @@ static bool IsVisibleInStackTrace(JSFunction* fun, |
if (receiver->IsJSBuiltinsObject()) return false; |
if (fun->IsBuiltin()) { |
return fun->shared()->native(); |
- } else if (fun->IsFromNativeScript() || fun->IsFromExtensionScript()) { |
+ } else if (!fun->IsSubjectToDebugging()) { |
return false; |
} |
} |
@@ -1324,7 +1324,7 @@ bool Isolate::ComputeLocationFromStackTrace(MessageLocation* target, |
for (int i = 1; i < elements_limit; i += 4) { |
Handle<JSFunction> fun = |
handle(JSFunction::cast(elements->get(i + 1)), this); |
- if (fun->IsFromNativeScript()) continue; |
+ if (!fun->IsSubjectToDebugging()) continue; |
Object* script = fun->shared()->script(); |
if (script->IsScript() && |