You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior:
Only q is a method on c; m is not recognised.
Note that if the declaration is var C = function(p) { this.p = p }, everything works. This only happens when C is a function declaration instead of a variable declaration with a function initialiser.
Expected behavior:
Both
qandmare methods onc.Actual behavior:
Only
qis a method onc;mis not recognised.Note that if the declaration is
var C = function(p) { this.p = p }, everything works. This only happens whenCis a function declaration instead of a variable declaration with a function initialiser.