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 module loading on systems that use '\' instead of '/' as the path separator. #193

Merged
merged 1 commit into from
Aug 22, 2018

Conversation

mpiroc
Copy link
Contributor

@mpiroc mpiroc commented Aug 22, 2018

If packageDir is something like so\neat, then the code run by _execute will be require("so\neat"), which fails due to the escape sequence \n.

With this change, the code run by _execute will instead be require(String.raw`so\neat`).

@mpiroc mpiroc merged commit 04d4990 into master Aug 22, 2018
@mpiroc mpiroc deleted the pirocchi/winpath branch August 22, 2018 18:26
eladb pushed a commit that referenced this pull request Aug 28, 2018
### Bug Fixes

* **jsii-pacmak:** Output .NET build artifacts to `dist/dotnet/` instead of just `dist/` ([#192](#192)) ([f25c8c4](f25c8c4))
* **jsii-kernel:** Fix module loading on systems that use '\' instead of '/' as the path separator ([#193](#193)) ([9e42991](9e42991))

### Features

* **jsii:** Add check against downgrading properties to readonly ([#201](#201)) ([f60b0ac](f60b0ac))
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