1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Fix errors reported by the space-infix-ops ESLint rule

http://eslint.org/docs/rules/space-infix-ops
This commit is contained in:
Jonas Jenwald 2016-12-11 10:43:09 +01:00
parent 68bf47d55d
commit 28e50cfa21
6 changed files with 8 additions and 8 deletions

View file

@ -68,7 +68,7 @@ function handlePreprocessorAction(ctx, actionName, args, loc) {
jsonPath.substring(ROOT_PREFIX.length));
}
var jsonContent = fs.readFileSync(jsonPath).toString();
var parsedJSON = esprima.parse('(' +jsonContent + ')');
var parsedJSON = esprima.parse('(' + jsonContent + ')');
parsedJSON.body[0].expression.loc = loc;
return parsedJSON.body[0].expression;
}