tc39 / proposal-class-public-fields

Stage 2 proposal for public class fields in ECMAScript
https://tc39.github.io/proposal-class-public-fields/
487 stars 25 forks source link

Function name inference #48

Closed bakkot closed 7 years ago

bakkot commented 8 years ago

I would expect the following to print 'a':

class C {
  a = function(){}
}

print((new C).a.name);

Similarly for static properties and computed names.

bakkot commented 7 years ago

Fixed in https://github.com/tc39/proposal-class-fields/pull/23.