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

Added support for io.js #21

Merged
merged 2 commits into from
Feb 9, 2015
Merged

Added support for io.js #21

merged 2 commits into from
Feb 9, 2015

Conversation

blond
Copy link
Contributor

@blond blond commented Feb 9, 2015

if (!descriptor || descriptor && descriptor.writable) {
realFs[name] = mockFs[name];
} else {
Object.defineProperty(realFs, name, descriptor);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear to me that this line has any effect.

@tschaub
Copy link
Owner

tschaub commented Feb 9, 2015

Thanks for this contribution @andrewblond.

As mentioned above, if a descriptor is falsy or not writable, I don't think we need to (or should) call Object.defineProperty(realFs, name, descriptor). Is there a case where this is needed?

@tschaub
Copy link
Owner

tschaub commented Feb 9, 2015

If you rebase on master, there should be a minor conflict to resolve with 04feca9.

@blond
Copy link
Contributor Author

blond commented Feb 9, 2015

fixed

@tschaub
Copy link
Owner

tschaub commented Feb 9, 2015

Looks great. Thanks for tackling this @andrewblond.

tschaub added a commit that referenced this pull request Feb 9, 2015
@tschaub tschaub merged commit d648fd7 into tschaub:master Feb 9, 2015
@blond
Copy link
Contributor Author

blond commented Feb 9, 2015

@tschaub, thanks!

@tschaub tschaub mentioned this pull request Mar 2, 2015
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.

2 participants