| Index: src/accessors.cc
|
| diff --git a/src/accessors.cc b/src/accessors.cc
|
| index e7d6aa0e8b66483ba510c4720945d0d97c82457a..f02efa55a2257db671ea7e0032f956f97eb87043 100644
|
| --- a/src/accessors.cc
|
| +++ b/src/accessors.cc
|
| @@ -599,6 +599,7 @@ MaybeObject* Accessors::FunctionGetArguments(Object* object, void*) {
|
| if (!found_it) return isolate->heap()->undefined_value();
|
| Handle<JSFunction> function(holder, isolate);
|
|
|
| + if (function->shared()->native()) return isolate->heap()->null_value();
|
| // Find the top invocation of the function by traversing frames.
|
| List<JSFunction*> functions(2);
|
| for (JavaScriptFrameIterator it(isolate); !it.done(); it.Advance()) {
|
| @@ -732,6 +733,7 @@ MaybeObject* Accessors::FunctionGetCaller(Object* object, void*) {
|
| bool found_it = false;
|
| JSFunction* holder = FindInPrototypeChain<JSFunction>(object, &found_it);
|
| if (!found_it) return isolate->heap()->undefined_value();
|
| + if (holder->shared()->native()) return isolate->heap()->null_value();
|
| Handle<JSFunction> function(holder, isolate);
|
|
|
| FrameFunctionIterator it(isolate, no_alloc);
|
|
|