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()) {
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);
var f = functions[i + 1];
%FunctionSetName(f, key);
%FunctionRemovePrototype(f);
- // We match firefox on this, but not Safari (which does not have the
- // property at all).
- %IgnoreAttributesAndSetProperty(f, "caller",
- null,
- DONT_ENUM | DONT_DELETE);
- %IgnoreAttributesAndSetProperty(f, "arguments",
- null,
- DONT_ENUM | DONT_DELETE);
-
%SetProperty(object, key, f, attributes);
%SetNativeFlag(f);
}