Closed antob closed 10 years ago
This is strange. writable
is usually only relevant when Object.defineProperty
is called with value
, and not with get
and set
like Serenade does. It seems that the implementation of Object.defineProperty
is incorrect in Safari 5.1. Seems like Serenade should support Safari 5.1, so adding the workaround is probably a good idea. What do you think?
Unless you can think of any negative side effects, I'm all for it. At least it doesn't break any tests. Do you want me to do a PR?
Sure! Thanks. I don't think it will have negative side effects, it should do nothing in all other browsers.
Presuming Safari 5.1 is supported, i found the following odd behavour:
It seems the property is not writable. Adding property
writable: true
to the definition on line 52 in property.coffee seems to fix the problem.I'm on Serenade revision 69fdcad6e2.