Skip to content

Commit ddf580b

Browse files
authored
Objects: fix weird number issue (#511)
1 parent 398e87a commit ddf580b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

static/extensions/DogeisCut/dogeiscutObject.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,11 +1197,11 @@
11971197
return new imports.TypedInput(source, imports.TYPE_UNKNOWN)
11981198
},
11991199
forEachK: (node, compiler, imports) => {
1200-
let source = `(thread._dogeiscutObjectForEach && thread._dogeiscutObjectForEach[thread._dogeiscutObjectForEach.length-1]) ? thread._dogeiscutObjectForEach[thread._dogeiscutObjectForEach.length-1][0] : ""`
1201-
return new imports.TypedInput(source, imports.TYPE_UNKNOWN)
1200+
let source = `((thread._dogeiscutObjectForEach && thread._dogeiscutObjectForEach[thread._dogeiscutObjectForEach.length-1]) ? thread._dogeiscutObjectForEach[thread._dogeiscutObjectForEach.length-1][0] : "")`
1201+
return new imports.TypedInput(source, imports.TYPE_STRING)
12021202
},
12031203
forEachV: (node, compiler, imports) => {
1204-
let source = `(thread._dogeiscutObjectForEach && thread._dogeiscutObjectForEach[thread._dogeiscutObjectForEach.length-1]) ? thread._dogeiscutObjectForEach[thread._dogeiscutObjectForEach.length-1][1] : ""`
1204+
let source = `((thread._dogeiscutObjectForEach && thread._dogeiscutObjectForEach[thread._dogeiscutObjectForEach.length-1]) ? vm.dogeiscutObject.Type.forObject(thread._dogeiscutObjectForEach[thread._dogeiscutObjectForEach.length-1][1]) : "")`
12051205
return new imports.TypedInput(source, imports.TYPE_UNKNOWN)
12061206
},
12071207
forEach: (node, compiler, imports) => {

0 commit comments

Comments
 (0)