-
Notifications
You must be signed in to change notification settings - Fork 469
Negation #7138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Negation #7138
Changes from all commits
4b4b7b0
e582405
eae1f41
a417524
6a8dde2
194846d
036a32d
39dc804
cfed809
4e1120d
e07ee33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -386,9 +386,9 @@ function check$1(s) { | |
return; | ||
} | ||
let match = s[0]; | ||
if (match === undefined || match === null || match === true) { | ||
if (match === true) { | ||
let match$1 = s[1]; | ||
if (match$1 === undefined || match$1 === null || match$1 === false) { | ||
if (match$1 === false) { | ||
let match$2 = s[2]; | ||
if (match$2 === undefined || match$2 === null || match$2 === false || match$2 === true) { | ||
console.log("Nope..."); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't comment further below for some reason, and probably out of scope of this PR, but if (match$3 === undefined || match$3 === null || match$3 === false || match$3 === true) {
console.log("Nope...");
return;
}
if (typeof match$3 === "string" && match$3 === "My name is") { could just be if (match$3 === "My name is") { ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you move this to an issue? after this PR |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't this actually incorrect before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it was incorrect