Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Instrument ObjectMethod's. #182

Merged
merged 1 commit into from Jun 26, 2018
Merged

fix: Instrument ObjectMethod's. #182

merged 1 commit into from Jun 26, 2018

Conversation

coreyfarrell
Copy link
Member

nyc currently reports the following code as containing 0 functions. Add
ObjectMethod visitor to istanbul-lib-instrument so these are seen.

const obj = {
	get prop() { return 0; }
	fn() {}
	*gen() {}
};

@coveralls
Copy link

coveralls commented Jun 8, 2018

Coverage Status

Coverage decreased (-0.4%) to 87.412% when pulling a651dc7 on coreyfarrell:instrument-object-method into 228edf6 on istanbuljs:master.

nyc currently reports the following code as containing 0 functions.  Add
ObjectMethod visitor to istanbul-lib-instrument so these are seen.

```js
const obj = {
	get prop() { return 0; }
	fn() {}
	*gen() {}
};
```
@bcoe
Copy link
Member

bcoe commented Jun 26, 2018

@coreyfarrell thank you for figuring this out! I believe there's an open issue (perhaps on nyc) related to this?

@bcoe bcoe merged commit 126f09d into istanbuljs:master Jun 26, 2018
@coreyfarrell coreyfarrell deleted the instrument-object-method branch June 26, 2018 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants