Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index f9fd3ec1b530517f81e59044fb34f2821ee98515..bb0cdf44bb9a878804bf94cff20d58925a8d5d8a 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -316,7 +316,7 @@ static bool IsVisibleInStackTrace(JSFunction* fun, |
// exposed, in which case the native flag is set. |
// The --builtins-in-stack-traces command line flag allows including |
// internal call sites in the stack trace for debugging purposes. |
- if (!FLAG_builtins_in_stack_traces && fun->IsBuiltin()) { |
+ if (!FLAG_builtins_in_stack_traces && fun->shared()->IsBuiltin()) { |
return fun->shared()->native(); |
} |
return true; |
@@ -1341,7 +1341,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->IsSubjectToDebugging()) continue; |
+ if (!fun->shared()->IsSubjectToDebugging()) continue; |
Object* script = fun->shared()->script(); |
if (script->IsScript() && |