Skip to content

Commit e67de73

Browse files
committed
Don't ignore array type for special JS array types
1 parent 9853efb commit e67de73

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/prelude/prelude.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ var $substring = function(str, low, high) {
119119
};
120120
121121
var $sliceToArray = function(slice) {
122-
if (slice.$length === 0) {
123-
return [];
124-
}
125122
if (slice.$array.constructor !== Array) {
126123
return slice.$array.subarray(slice.$offset, slice.$offset + slice.$length);
127124
}

0 commit comments

Comments
 (0)