Skip to content

Commit 95a45f3

Browse files
pgbovinemmmicedcoffee
authored andcommitted
bah
1 parent d80dc46 commit 95a45f3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎v3/js/pytutor.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3107,14 +3107,17 @@ function structurallyEquivalent(obj1, obj2) {
31073107

31083108

31093109
function isPrimitiveType(obj) {
3110+
// null is a primitive
31103111
if (obj == null) {
31113112
return true;
31123113
}
31133114

31143115
if (typeof obj == "object") {
3115-
// kludge: 'SPECIAL_FLOAT' objects count as primitives
3116+
// kludge: only 'SPECIAL_FLOAT' objects count as primitives
31163117
return (obj[0] == 'SPECIAL_FLOAT');
3118+
}
31173119
else {
3120+
// non-objects are primitives
31183121
return true;
31193122
}
31203123
}

0 commit comments

Comments
 (0)