commit
39769b77af
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ Elm.Native.Utils.make = function(elm) {
|
|||
function compare(x,y) { return { ctor: ord[cmp(x,y)+1] } }
|
||||
function cmp(x,y) {
|
||||
var ord;
|
||||
if (typeof x !== 'object') return x === y ? EQ : x < y ? LT : GT;
|
||||
if (typeof x !== 'object' || x instanceof String){
|
||||
return x === y ? EQ : x < y ? LT : GT;
|
||||
}
|
||||
|
||||
if (x.ctor === "::" || x.ctor === "[]") {
|
||||
while (true) {
|
||||
|
|
Loading…
Reference in a new issue