Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 5cafde647e1b916a13613c6ff4673b0f8182e4e0..09b53c8a77cbb0888b4a9f0878af1cf1477ccbd7 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -490,7 +490,7 @@ Handle<JSArray> Isolate::CaptureSimpleStackTrace(Handle<JSObject> error_object, |
// mode function. The number of sloppy frames is stored as |
// first element in the result array. |
if (!encountered_strict_function) { |
- if (!fun->shared()->is_sloppy_mode()) { |
+ if (fun->shared()->strict_mode() == STRICT) { |
encountered_strict_function = true; |
} else { |
sloppy_frames++; |