Don't ignore passed attributes in InstallGetterSetter
Up until now, the passed attributes were completely ignored and we defaulted to DONT_ENUM every time. BUG= Review-Url: https://codereview.chromium.org/2297193005 Cr-Commit-Position: refs/heads/master@{#39091}
This commit is contained in:
parent
8225465b09
commit
69debbb50c
@ -120,7 +120,7 @@ function InstallGetterSetter(object, name, getter, setter, attributes) {
|
||||
SetFunctionName(setter, name, "set");
|
||||
%FunctionRemovePrototype(getter);
|
||||
%FunctionRemovePrototype(setter);
|
||||
%DefineAccessorPropertyUnchecked(object, name, getter, setter, DONT_ENUM);
|
||||
%DefineAccessorPropertyUnchecked(object, name, getter, setter, attributes);
|
||||
%SetNativeFlag(getter);
|
||||
%SetNativeFlag(setter);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user