Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 0366895bfc332dc9949c25b22eaa982612b3b1b7..cee26520772de48aedf616fe8c87b1225a3f8dd6 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -1412,7 +1412,7 @@ MaybeHandle<JSFunction> FindCaller(Isolate* isolate, |
// Censor if the caller is not a sloppy mode function. |
// Change from ES5, which used to throw, see: |
// https://bugs.ecmascript.org/show_bug.cgi?id=310 |
- if (caller->shared()->strict_mode() == STRICT) { |
+ if (is_strict(caller->shared()->language_mode())) { |
return MaybeHandle<JSFunction>(); |
} |
// Don't return caller from another security context. |