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

merged 1 commit into from Nov 5, 2012


None yet

2 participants


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 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