compat-table
compat-table copied to clipboard
Shorthand methods has buggy implementation on iOS 9
I have discovered shadowing bug in Safari for iOS 9.3. A shorthand method that calls a method with the same name will call itself, rather than the named method. Eg. this will inadvertently loop:
var y = function() { return 2 };
var x = { y() { return y(); } };
x.y();
I have made a jsbin to demonstrate as well: http://jsbin.com/culasav/4/edit?js,output
Should the test be modified to account for this bug?
We should add an additional regression test for this, yes.
Separately, has there been a test262 bug filed for this?
This is the only bug report I have filed for the issue. Let me know if I can help.