Triple equals vs double equals

pull/9098/head
Nguyen Tran 3 years ago
parent 372a2fa5b3
commit 1b18b91c69

@ -43,7 +43,7 @@ const cqSyntax = fork({
this.skipSC();
if (this.tokenType == Function && this.cmpStr(this.tokenStart, this.tokenEnd, 'layer(')) {
if (this.tokenType === Function && this.cmpStr(this.tokenStart, this.tokenEnd, 'layer(')) {
children.push(
this.Function(() => {
const children = this.createList();
@ -54,7 +54,7 @@ const cqSyntax = fork({
}, this.scope.AtrulePrelude)
);
} else if (
this.tokenType == Ident &&
this.tokenType === Ident &&
this.cmpStr(this.tokenStart, this.tokenEnd, 'layer')
) {
children.push(this.Identifier());
@ -63,7 +63,7 @@ const cqSyntax = fork({
this.skipSC();
if (
this.tokenType == Function &&
this.tokenType === Function &&
this.cmpStr(this.tokenStart, this.tokenEnd, 'supports(')
) {
children.push(

Loading…
Cancel
Save