Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 3479ae239263d596ddc3ec764efcc40ce1569cdc..e160706c774188135116ab4a42c0c9ab427da10e 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -404,7 +404,7 @@ Handle<Object> 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()->strict_mode() == STRICT) { |
+ if (is_strict(fun->shared()->language_mode())) { |
encountered_strict_function = true; |
} else { |
sloppy_frames++; |