src/emitter.js: Use strict comparison
Fixes the following JSHint error: ./src/emitter.js: line 44, col 48, Expected '!==' and instead saw '!='.
This commit is contained in:
parent
f893d47b98
commit
d1b83e4ab3
|
@ -41,7 +41,7 @@ PEG.compiler.emitter = function(ast) {
|
||||||
throw new Error("Undefined variable: \"" + name + "\".");
|
throw new Error("Undefined variable: \"" + name + "\".");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filter !== undefined && filter != "") { // JavaScript engines differ here.
|
if (filter !== undefined && filter !== "") { // JavaScript engines differ here.
|
||||||
if (filter === "string") {
|
if (filter === "string") {
|
||||||
return quote(value);
|
return quote(value);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue