Skip to content

Commit cfdce80

Browse files
committed
fixed keyFor for arrays (gopherjs#222)
1 parent a154bdb commit cfdce80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/prelude/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ var $newType = function(size, kind, string, name, pkg, constructor) {
121121
typ.len = len;
122122
typ.comparable = elem.comparable;
123123
typ.keyFor = function(x) {
124-
return Array.prototype.join.call($mapArray(x.$val, function(e) {
124+
return Array.prototype.join.call($mapArray(x, function(e) {
125125
return elem.keyFor(e).replace(/\\/g, "\\\\").replace(/\$/g, "\\$");
126126
}), "$");
127127
};

0 commit comments

Comments
 (0)