Skip to content

Commit

Permalink
[decorators] Fields are enumerable (#8761)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Sep 24, 2018
1 parent 9f407e0 commit 5150f5f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/babel-helpers/src/helpers.js
Expand Up @@ -1232,7 +1232,7 @@ helpers.decorate = helper("7.0.2")`
} else if (def.kind === "set") {
descriptor = { set: def.value, configurable: true, enumerable: false };
} else if (def.kind === "field") {
descriptor = { configurable: true, writable: true, enumerable: false };
descriptor = { configurable: true, writable: true, enumerable: true };
}
var element /*: ElementDescriptor */ = {
Expand Down
Expand Up @@ -10,7 +10,7 @@ expect(el).toEqual(Object.defineProperty({
key: "foo",
placement: "own",
descriptor: {
enumerable: false,
enumerable: true,
configurable: true,
writable: true,
},
Expand Down
Expand Up @@ -11,7 +11,7 @@ expect(el).toEqual(Object.defineProperty({
key: "foo",
placement: "own",
descriptor: {
enumerable: false,
enumerable: true,
configurable: true,
writable: true,
},
Expand Down
Expand Up @@ -11,7 +11,7 @@ expect(el).toEqual(Object.defineProperty({
key: "foo",
placement: "static",
descriptor: {
enumerable: false,
enumerable: true,
configurable: true,
writable: true,
},
Expand Down

0 comments on commit 5150f5f

Please sign in to comment.