Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 259c2a2c24f62b4451f5bdd9e0771254923db832..6321b903985c12245870609a02e17908093d98db 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++; |