Commit 69debbb5 authored by jgruber's avatar jgruber Committed by Commit bot

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}
parent 8225465b
......@@ -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);
}
......
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