Differences From Artifact [37c439b24d]:
- File build/tcl/chrome-emu.js — part of check-in [d73ab988ad] at 2019-06-12 19:39:48 on branch trunk — More work Duktape-based chrome-alike environment (user: rkeene, size: 2736) [annotate] [blame] [check-ins using]
To Artifact [a176681a9a]:
- File build/tcl/chrome-emu.js — part of check-in [f69d4ccb30] at 2022-03-13 20:15:18 on branch trunk — Better error logging in Tcl/JS emulation (user: rkeene, size: 2802) [annotate] [blame] [check-ins using]
︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | + + | arg = argInfo[idx]; if (typeof(arg) === 'string' || typeof(arg) === 'number') { outArray.push(arg); } else if (typeof(arg) === 'undefined') { outArray.push("<undefined>"); } else if (arg === null) { outArray.push("<null>"); } else if (arg instanceof Error) { outArray.push(arg.stack); } else { outArray.push(JSON.stringify(arg)); } } return(outArray.join(' ')); } console.log = function() { |
︙ |