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

Make FileSystem.currentAppPath platform specific #2028

Merged
merged 1 commit into from Apr 27, 2016

Conversation

jasssonpet
Copy link
Contributor

@jasssonpet jasssonpet commented Apr 25, 2016

When running in the case of snapshot __dirname is not defined. Circumvent this by using platform-specific logic for finding the correct path.

Related to: #1563

ping @atanasovg, @KristinaKoeva

@jasssonpet jasssonpet self-assigned this Apr 25, 2016
@ns-bot ns-bot added cla: yes and removed cla: no labels Apr 25, 2016
@atanasovg
Copy link
Contributor

👍 Seems completely safe. This is not needed to go into the 2.0 release, we may have it applied locally on our machines prior to snapshot generation, right?

@jasssonpet
Copy link
Contributor Author

jasssonpet commented Apr 25, 2016

Yes, I think it's safer that way.

The trick with the global.__dirname getter just crashed the V8 serializer 😄

@jasssonpet jasssonpet merged commit 264fe17 into master Apr 27, 2016
@jasssonpet jasssonpet deleted the jasssonpet/current-app-path branch April 27, 2016 11:56
@lock
Copy link

lock bot commented Aug 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants