Commit 2b961cec authored by adamk's avatar adamk Committed by Commit bot

Tiny fix for sloppy function map 'name' descriptor attributes

I can't actually figure out how to trigger a change in behavior here,
but it looks like we should be passing the same attributes both to
the accessor and the descriptor.

R=verwaest@chromium.org

Review-Url: https://codereview.chromium.org/2616843005
Cr-Commit-Position: refs/heads/master@{#42149}
parent 5c15115e
......@@ -2678,7 +2678,7 @@ void Factory::SetFunctionInstanceDescriptor(Handle<Map> map,
STATIC_ASSERT(JSFunction::kNameDescriptorIndex == 1);
Handle<AccessorInfo> name =
Accessors::FunctionNameInfo(isolate(), ro_attribs);
Accessors::FunctionNameInfo(isolate(), roc_attribs);
{ // Add name.
Descriptor d = Descriptor::AccessorConstant(
Handle<Name>(Name::cast(name->name())), name, roc_attribs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment