| Index: src/accessors.cc
|
| diff --git a/src/accessors.cc b/src/accessors.cc
|
| index 0a9ed9488bc24baa0f4b14aa59defd7cffbeabd8..9ec24b84c7c586bd8c8c654d226af6c141e579d6 100644
|
| --- a/src/accessors.cc
|
| +++ b/src/accessors.cc
|
| @@ -1025,11 +1025,10 @@
|
| if (caller == NULL) return MaybeHandle<JSFunction>();
|
| } while (caller->shared()->is_toplevel());
|
|
|
| - // If caller is not user code and caller's caller is also not user code,
|
| + // If caller is a built-in function and caller's caller is also built-in,
|
| // use that instead.
|
| JSFunction* potential_caller = caller;
|
| - while (potential_caller != NULL &&
|
| - !potential_caller->shared()->IsUserJavaScript()) {
|
| + while (potential_caller != NULL && potential_caller->shared()->IsBuiltin()) {
|
| caller = potential_caller;
|
| potential_caller = it.next();
|
| }
|
|
|