Files
Ben Noordhuis d07f6b5232 Handle unprintable objects better in print() (#834)
Before this commit, such objects were printed as `<exception>` because
print() and console.log() had no good way to turn them into strings.

Instead perform the C equivalent of Object.prototype.toString.call(o)
and print the result (which can still error but at least we tried.)

Fixes: https://github.com/quickjs-ng/quickjs/issues/832
2025-01-18 16:04:16 +01:00

0 lines
0 B
JavaScript