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:
jgruber 2016-09-01 07:52:16 -07:00 committed by Commit bot
parent 8225465b09
commit 69debbb50c

View File

@ -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);
}