fix stringify array
This commit is contained in:
@@ -49,10 +49,11 @@ const throttledPM = (() => {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
const l = args => {
|
const l = args => {
|
||||||
const data = args.map(el => stringify(el, (val, ind, str) => {
|
// const data = args.map(el => stringify(el, (val, ind, str) => {
|
||||||
if (getType(val) === 'bigint') return `${val}n`;
|
// if (getType(val) === 'bigint') return `${val}n`;
|
||||||
return val;
|
// return val;
|
||||||
}, ' ')).join(', ');
|
// }, ' ')).join(', ');
|
||||||
|
const data = args.map(el => stringify(el, null, ' ')).join(', ');
|
||||||
throttledPM(data);
|
throttledPM(data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ export default defineComponent({
|
|||||||
const code = `
|
const code = `
|
||||||
'Hello World!';
|
'Hello World!';
|
||||||
|
|
||||||
|
new Array(10).fill(0).map((_, i) => '#'.repeat(i+1));
|
||||||
|
|
||||||
2n ** 42n;
|
2n ** 42n;
|
||||||
|
|
||||||
for (let i = 0; i < 42; ++i) {
|
for (let i = 0; i < 42; ++i) {
|
||||||
|
|||||||
Reference in New Issue
Block a user