-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safari: "TypeError: Attempting to change the setter of an unconfigurable property." #3121
Comments
Wow, this is actually a Safari bug! This also shows this issue, only in Safari: http://jsbin.com/miwukeyeto/edit?html,console |
@kevinpschaaf and I found there are four problems here.
var proto = {};
Object.defineProperty(proto, '0', {
get: function(){},
set: function(){}
});
var o = Object.create(proto);
o[0] = 3;
// o[0] === undefined in Chrome, Firefox, and IE
// o[0] === 3 in Safari The end result is that the accessor for the |
Filed issue 4 above as https://bugs.webkit.org/show_bug.cgi?id=151812 |
Root cause issue that results in triggering the Safari bug with reduced repro here: #3128. Will likely just fix that to avoid the Safari bug here to resolve both. |
Will be fixed in #3153. JSBin repro using PR branch: http://jsbin.com/zapido/edit?html,output works on Safari now. |
@kevinpschaaf Your JSBin doesn't seem to work on El Capitan / Safari 9.0.2. Enable the console and you should see the same errors I'm getting. |
Sorry, the branch I pointed to in that bin was merged to master and deleted, so I guess polygit defaults back to the last release when it can't find the branch. Here's a new jsBin that points to master, showing it fixed: http://jsbin.com/yuturakaxi/1/edit?html,console,output |
@kevinpschaaf Ah, perfect. Any idea when we can expect this commit to make it into a release? |
@azakus Thanks for diagnosing this through the Polymer layer to base issue and reporting the bug to WebKit. |
@miztroh It's possible we push a release today, if not next week. |
@kevinpschaaf There hasn't been a release since this was fixed in master. I've got several places across a website that are just broken in Safari. Can you give an update as to when we can expect a release? |
We are doing pre-release tests now with the goal of getting one cut this week. |
JS Bin provided below. Confirmed working on Chrome, Firefox, IE11, and Edge. Safari errors out with the message above.
http://jsbin.com/hatuxapodu/edit?html,output
The text was updated successfully, but these errors were encountered: