compat-table icon indicating copy to clipboard operation
compat-table copied to clipboard

Shorthand methods has buggy implementation on iOS 9

Open kanongil opened this issue 7 years ago • 2 comments

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?

kanongil avatar May 01 '18 10:05 kanongil

We should add an additional regression test for this, yes.

Separately, has there been a test262 bug filed for this?

ljharb avatar May 01 '18 15:05 ljharb

This is the only bug report I have filed for the issue. Let me know if I can help.

kanongil avatar May 01 '18 18:05 kanongil