Check-in [f69d4ccb30]
Overview
Comment:Better error logging in Tcl/JS emulation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f69d4ccb30ecf99d814e9654538b16eb2468d7d1
User & Date: rkeene on 2022-03-13 20:15:18
Other Links: manifest | tags
Context
2022-03-13
20:23
Add SHA-512 support (hacked) and a bit of cleanup check-in: a1b40a439c user: rkeene tags: trunk
20:15
Better error logging in Tcl/JS emulation check-in: f69d4ccb30 user: rkeene tags: trunk
20:14
Ignore listing errors in JS-SSH agent check-in: b9b289bb1f user: rkeene tags: trunk
Changes

Modified build/tcl/chrome-emu.js from [37c439b24d] to [a176681a9a].

9
10
11
12
13
14
15


16
17
18
19
20
21
22
		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 {
			outArray.push(JSON.stringify(arg));
		}
	}
	return(outArray.join(' '));
}
console.log = function() {







>
>







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() {