Fixed bug where script passed to jsdom.env contains spaces #527

Merged
merged 1 commit into from Nov 5, 2012

Projects

None yet

2 participants

@tomnomnom
Contributor

Found a problem when using jsdom in a Jenkins environment, where our workspaces often have spaces in the filenames.

When the path to a script has spaces in its filename they are swapped with "%20"s by URL.resolve(). That's not a problem in itself, but when core.resourceLoader.readFile tries to pull the file off disk it fails with an ENOENT.

@domenic
Collaborator
domenic commented Nov 5, 2012

Nice find, thanks.

@domenic domenic merged commit 40f0eb5 into tmpvar:master Nov 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment