jscl
jscl copied to clipboard
More information about javascript objects
At the moment, printing a javascript object always results in #<javascript object>. It would be nice to have the fields printed: something like #<javascript object: x = 1, y = 2> for an object with an x property of 1 and a y property of 2, for example.
This is a low priority feature, of course.
Or at least in the describe function.
Keys already appear in description:
CL-USER> (describe #j:console)
#<JS-OBJECT [object Object]>
Class: #<builtin-in-class JSCL::JS-OBJECT>
Signature: [object Object]
Keys: (assert clear count countReset debug error info log table trace warn dir dirxml group groupCollapsed groupEnd time timeLog timeEnd exception timeStamp profile profileEnd)
Good enough?
For values, I would implement an INSPECT function.