| Index: src/accessors.cc
|
| diff --git a/src/accessors.cc b/src/accessors.cc
|
| index 1e8abd95ab6adc13d11d904826847e533fe8a559..fdbbd3e0a48e893dd5a99934bf01aaa418a9c685 100644
|
| --- a/src/accessors.cc
|
| +++ b/src/accessors.cc
|
| @@ -1406,7 +1406,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.
|
|
|