Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions transcrypt/modules/org/transcrypt/__builtin__.js
Original file line number Diff line number Diff line change
Expand Up @@ -2104,7 +2104,7 @@ export function __and__ (a, b) {
// Overloaded binary compare

export function __eq__ (a, b) {
if (typeof a == 'object' && '__eq__' in a) {
if (b != null && typeof a == 'object' && '__eq__' in a) {
return a.__eq__ (b);
}
else {
Expand All @@ -2113,7 +2113,7 @@ export function __eq__ (a, b) {
};

export function __ne__ (a, b) {
if (typeof a == 'object' && '__ne__' in a) {
if (b != null && typeof a == 'object' && '__ne__' in a) {
return a.__ne__ (b);
}
else {
Expand Down