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: Remove statSyncNoException for good #15092

Merged
merged 3 commits into from
Oct 12, 2018
Merged

fix: Remove statSyncNoException for good #15092

merged 3 commits into from
Oct 12, 2018

Conversation

felixrieseberg
Copy link
Member

@felixrieseberg felixrieseberg commented Oct 11, 2018

Description of Change

The existing code throws if an asar is used. This simply changes the assignment, ensuring that the correct object is returned.

New plan: Let's just cut fs.statSyncNoException for real.

Checklist
  • PR description included and stakeholders cc'd
  • npm test passes
  • PR title follows semantic commit guidelines
Release Notes

Notes: Fix "TypeError: statSyncNoException is not a function" when asar is used

fs.statSyncNoException = pathArgument => {
const { isAsar, asarPath, filePath } = splitPath(pathArgument)
if (!isAsar) return statSyncNoException(pathArgument)
if (!isAsar) return fs.statSyncNoException(pathArgument)
Copy link
Member Author

Choose a reason for hiding this comment

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

@MarshallOfSound I'm actually not quite sure what this code is supposed to do. This would is just recursion, right?

@felixrieseberg felixrieseberg changed the title fix: Small JS assignment error in asar.js fix: Remove statSyncNoException for good Oct 11, 2018
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

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

@felixrieseberg rip, see #15089; we already removed it from the fork but forgot to remove it here 🙃

ty for this

@release-clerk
Copy link

release-clerk bot commented Oct 12, 2018

Release Notes Persisted

Fix "TypeError: statSyncNoException is not a function" when asar is used

@trop
Copy link
Contributor

trop bot commented Oct 12, 2018

We have automatically backported this PR to "4-0-x", please check out #15110

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