Skip to content

fix(wasm): normalize Windows backslashes to forward slashes in lint paths - #147

Open
Kubudak90 wants to merge 1 commit into
ethereum:masterfrom
Kubudak90:fix/wasm-windows-paths
Open

fix(wasm): normalize Windows backslashes to forward slashes in lint paths#147
Kubudak90 wants to merge 1 commit into
ethereum:masterfrom
Kubudak90:fix/wasm-windows-paths

Conversation

@Kubudak90

Copy link
Copy Markdown

WASM uses Unix path semantics, so Windows paths with backslashes are not parsed correctly by PathBuf::parent(). Normalizing to forward slashes fixes resolution of relative requires files when the working directory differs from the source directory. Node.js accepts forward-slash paths on all platforms.

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.

1 participant