Open
Description
#849 implemented the feature to call toJSON()
for internal JSON clone algorithm
if it exists on an object. But as seen while working on #1709 it misses to catch errors potentially thrown by executing this method.
In such a situation the error as raised should be caught and re-thrown as javascript error
.