Skip to content

Commit

Permalink
fix(property-decorator): set configurable=true
Browse files Browse the repository at this point in the history
current version leaves the property non-configurable.this prevents aurelia from observing the property
see SpoonX/aurelia-orm#177
see aurelia/framework#541
  • Loading branch information
doktordirk committed Aug 12, 2016
1 parent 8882c9a commit 6488495
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export default function({types: t}){
t.arrayExpression(decorators.map(dec => dec.expression)),
t.objectExpression([
t.objectProperty(t.identifier('enumerable'), t.booleanLiteral(true)),
t.objectProperty(t.identifier('configurable'), t.booleanLiteral(true)),
t.objectProperty(t.identifier('initializer'), initializer),
]),
])),
Expand Down

0 comments on commit 6488495

Please sign in to comment.