GNOME Bugzilla – Bug 742535
Coverage AST walk does not detect MemberExpressions properly
Last modified: 2015-01-18 21:40:14 UTC
A function expression or definition can also be an object, so properties can be accessed on it while it is being defined. For instance: f = function(f) { }.bind(this) This is parsed as "MemberExpression". coverage.js does not parse this, so when the function is executed, it is not detected and coverage.js asserts accordingly.
Created attachment 294636 [details] [review] Handle other expression types too
Created attachment 294637 [details] [review] Beautifications as suggested on downstream review
Created attachment 294642 [details] [review] coverage: Fix typo This fixes a typo in the initial patch. Patches have already been applied downstream based on upstream maintainer review (Jasper, Cosimo), hence this patch is not rebased on to the initial patch to make downstream merging a little easier.