Add two missing |var|s (fix global namespace pollution)

redux
David Majda 14 years ago
parent 1a3291fa36
commit 98cbd57ead

@ -2247,8 +2247,8 @@ PEG.parser = (function(){
}
var result0 = result1 !== null
? (function(inverted, parts) {
partsConverted = map(parts, function(part) { return part.data; });
rawText = "["
var partsConverted = map(parts, function(part) { return part.data; });
var rawText = "["
+ inverted
+ map(parts, function(part) { return part.rawText; }).join("")
+ "]";

@ -232,8 +232,8 @@ simpleSingleQuotedCharacter
class "character class"
= "[" inverted:"^"? parts:(classCharacterRange / classCharacter)* "]" __ {
partsConverted = map(parts, function(part) { return part.data; });
rawText = "["
var partsConverted = map(parts, function(part) { return part.data; });
var rawText = "["
+ inverted
+ map(parts, function(part) { return part.rawText; }).join("")
+ "]";

Loading…
Cancel
Save