Skip to content

Commit e143dcd

Browse files
save file
1 parent bb93662 commit e143dcd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils/editors/js-console/html/output-console/output-console.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@
764764
var type = datatype(val);
765765
console.log('format.fn',type);
766766
if(type=='array'){
767-
val = val.map(v=>fn(v,seen));
767+
val = val.map(v=>format.fn(v,seen));
768768
var str = val.join(', ')
769769
return '['+str+']';
770770
}
@@ -784,13 +784,13 @@
784784
if(val instanceof Map){
785785
const entries = [];
786786
for (const [k, v] of val.entries()) {
787-
entries.push(`${fn(k, seen)} => ${fn(v, seen)}`);
787+
entries.push(`${fn(k, seen)} => ${format.fn(v, seen)}`);
788788
}
789789
return `Map { ${entries.join(', ')} }`;
790790
}
791791

792792
if(val instanceof Set){
793-
const entries = [...val].map(v=>fn(v,seen));
793+
const entries = [...val].map(v=>format.fn(v,seen));
794794
return `Set { ${entries.join(', ')} }`;
795795
}
796796

@@ -806,9 +806,9 @@
806806
}
807807

808808
if(typeof val==='object'){
809-
const entries = Object.entries(val).map(([k, v])=>{
809+
const entries = Object.entries(val).map(([k,v])=>{
810810

811-
return `${k}: ${fn(v, seen)}`;
811+
return `${k}: ${format.fn(v,seen)}`;
812812

813813
});
814814
return `{ ${entries.join(', ')} }`;

0 commit comments

Comments
 (0)