class syntax allows numeric and string identifiers for both instance and static methods.
Created attachment 251730 [details] Fixes the bug
Comment on attachment 251730 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=251730&action=review > LayoutTests/js/class-syntax-string-and-numeric-names-expected.txt:32 > +FAIL setterValue = 0; X = class { set 2(x) { setterValue = x; } }; (new X)[2] = 22; setterValue should be 22. Was 0. > +FAIL X[2] = 23; setterValue should be 22. Was 0. These failures are caused by webkit.org/b/144252 as commented in the test. > LayoutTests/js/class-syntax-string-and-numeric-names-expected.txt:38 > +FAIL setterValue = 0; X = class { get 5() { } set 5(x) { setterValue = x; } }; (new X)[5] = 25; setterValue should be 25. Was 0. > +FAIL X[5] = 26; setterValue should be 25. Was 0. Ditto.
Committed r183709: <http://trac.webkit.org/changeset/183709>