You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is technically incorrect ES5, since the name property is not supposed to be configurable. According to this, this might break PhantomJs. We found this issue internally after a Safari 9 iPad threw the following error: TypeError: Attempting to change configurable attribute of unconfigurable property. (I could not reproduce this error outside of our testing environment, so I'm guessing this is a browser quirk).
The text was updated successfully, but these errors were encountered:
@MatrixFrog Well I'm less of an expert than you, but I wouldn't think that would work, since the Function.name is already set and not configurable, and thus cannot be updated.
It looks like configurable: true is actually correct: Object.getOwnPropertyDescriptor({get name() { return 'name'; }}, 'name').configurable returns true. So I guess this is a bug in Safari, or in PhantomJS?
Take the following example:
This transpiles to: (link)
This is technically incorrect ES5, since the name property is not supposed to be configurable. According to this, this might break PhantomJs. We found this issue internally after a Safari 9 iPad threw the following error:
TypeError: Attempting to change configurable attribute of unconfigurable property.
(I could not reproduce this error outside of our testing environment, so I'm guessing this is a browser quirk).The text was updated successfully, but these errors were encountered: